Reordering docker operations

This commit is contained in:
vandomej 2025-09-16 13:08:55 -07:00
parent 43b373322c
commit 6b843940d8

View file

@ -8,9 +8,10 @@ RUN apk add --no-cache \
# Create a non-root user to run the build (best practice) # Create a non-root user to run the build (best practice)
RUN adduser -D builder RUN adduser -D builder
USER builder
WORKDIR /home/builder WORKDIR /home/builder
# The default command will be the build script # The default command will be the build script
COPY build.sh . COPY build.sh .
USER builder
CMD ["/bin/sh", "build.sh"] CMD ["/bin/sh", "build.sh"]