Capitalize "AS" in dockerfile

This commit is contained in:
Tim Hockin 2024-12-12 13:27:20 -08:00
parent 97c0d585a8
commit 552ece3cdd
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@
############################################################################# #############################################################################
# First we prepare the image that we want, regardless of build layers. # First we prepare the image that we want, regardless of build layers.
############################################################################# #############################################################################
FROM {ARG_FROM} as base FROM {ARG_FROM} AS base
# When building, we can pass a unique value (e.g. `date +%s`) for this arg, # When building, we can pass a unique value (e.g. `date +%s`) for this arg,
# which will force a rebuild from here (by invalidating docker's cache). # which will force a rebuild from here (by invalidating docker's cache).
@ -72,7 +72,7 @@ RUN /stage_binaries.sh -o {ARG_STAGING} \
-f /tmp -f /tmp
RUN ln -s /bin/bash {ARG_STAGING}/bin/sh # Not sure why this is not set up automatically RUN ln -s /bin/bash {ARG_STAGING}/bin/sh # Not sure why this is not set up automatically
FROM scratch as intermediate FROM scratch AS intermediate
# Docker doesn't do vars in COPY, so we can't use a regular ARG. # Docker doesn't do vars in COPY, so we can't use a regular ARG.
COPY --from=base {ARG_STAGING} / COPY --from=base {ARG_STAGING} /