Make the USER declaration last
This commit is contained in:
parent
4d44214d32
commit
1bbe366541
@ -13,9 +13,6 @@ ENV SKIP_PIPENV true
|
|||||||
# Set port to open
|
# Set port to open
|
||||||
EXPOSE "${APP_PORT}"
|
EXPOSE "${APP_PORT}"
|
||||||
|
|
||||||
# Run as the unprivileged APP user
|
|
||||||
USER "${APP_USER}"
|
|
||||||
|
|
||||||
# Use dumb-init for proper signal handling
|
# Use dumb-init for proper signal handling
|
||||||
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
||||||
|
|
||||||
@ -38,3 +35,6 @@ RUN set -x ; \
|
|||||||
# Update file ownership
|
# Update file ownership
|
||||||
RUN set -x ; \
|
RUN set -x ; \
|
||||||
chown -R atst:atat "${APP_DIR}"
|
chown -R atst:atat "${APP_DIR}"
|
||||||
|
|
||||||
|
# Run as the unprivileged APP user
|
||||||
|
USER "${APP_USER}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user