Skip to content

Commit

Permalink
chore(docker): Consistently upper-case the AS keyword
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
  • Loading branch information
sschuberth committed Feb 27, 2025
1 parent 7223922 commit 0fc16c1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
INCLUDE docker/versions.dockerfile

# Use OpenJDK Eclipe Temurin Ubuntu LTS
FROM eclipse-temurin:$JAVA_VERSION-jdk-$UBUNTU_VERSION as base
FROM eclipse-temurin:$JAVA_VERSION-jdk-$UBUNTU_VERSION AS base

ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
Expand Down Expand Up @@ -179,7 +179,7 @@ RUN pip install --no-cache-dir -U \
FROM scratch AS python
COPY --from=pythonbuild /opt/python /opt/python

FROM scratch as scancode-license-data
FROM scratch AS scancode-license-data
COPY --from=pythonbuild /opt/scancode-license-data /opt/scancode-license-data

#------------------------------------------------------------------------
Expand Down Expand Up @@ -409,7 +409,7 @@ COPY --from=dotnetbuild /opt/dotnet /opt/dotnet

#------------------------------------------------------------------------
# BAZEL
FROM base as bazelbuild
FROM base AS bazelbuild

ARG BAZELISK_VERSION

Expand All @@ -428,13 +428,13 @@ COPY --from=gobuild /opt/go /opt/go

RUN $GOBIN/go install github.com/bazelbuild/buildtools/buildozer@latest && chmod a+x $GOBIN/buildozer

FROM scratch as bazel
FROM scratch AS bazel
COPY --from=bazelbuild /opt/bazel /opt/bazel
COPY --from=bazelbuild /opt/go/bin/buildozer /opt/go/bin/buildozer

#------------------------------------------------------------------------
# ORT
FROM base as ortbuild
FROM base AS ortbuild

# Set this to the version ORT should report.
ARG ORT_VERSION="DOCKER-SNAPSHOT"
Expand Down Expand Up @@ -462,7 +462,7 @@ COPY --from=ortbuild /opt/ort /opt/ort

#------------------------------------------------------------------------
# Container with minimal selection of supported package managers.
FROM base as minimal-tools
FROM base AS minimal-tools

# Remove ort build scripts
RUN [ -d /etc/scripts ] && sudo rm -rf /etc/scripts
Expand Down Expand Up @@ -508,7 +508,7 @@ COPY --from=scancode-license-data --chown=$USER:$USER /opt/scancode-license-data

#------------------------------------------------------------------------
# Container with all supported package managers.
FROM minimal-tools as all-tools
FROM minimal-tools AS all-tools

# Repo and Android
ENV ANDROID_HOME=/opt/android-sdk
Expand Down Expand Up @@ -573,7 +573,7 @@ COPY --from=bazel --chown=$USER:$USER /opt/go/bin/buildozer /opt/go/bin/buildoze

#------------------------------------------------------------------------
# Runtime container with minimal selection of supported package managers pre-installed.
FROM minimal-tools as minimal
FROM minimal-tools AS minimal

# ORT
COPY --from=ortbin --chown=$USER:$USER /opt/ort /opt/ort
Expand All @@ -589,7 +589,7 @@ ENTRYPOINT ["/opt/ort/bin/ort"]

#------------------------------------------------------------------------
# Runtime container with all supported package managers pre-installed.
FROM all-tools as run
FROM all-tools AS run

# ORT
COPY --from=ortbin --chown=$USER:$USER /opt/ort /opt/ort
Expand Down

0 comments on commit 0fc16c1

Please sign in to comment.