Reordering docker operations
This commit is contained in:
parent
43b373322c
commit
6b843940d8
1 changed files with 2 additions and 1 deletions
|
|
@ -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"]
|
||||||
Loading…
Add table
Reference in a new issue