From 1bbe366541443624db06425faea2b28c77d4f3b9 Mon Sep 17 00:00:00 2001 From: Devon Mackay Date: Sun, 1 Jul 2018 22:57:19 -0400 Subject: [PATCH] Make the USER declaration last --- docker/prod/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/prod/Dockerfile b/docker/prod/Dockerfile index fe229acc..ef37a8bc 100644 --- a/docker/prod/Dockerfile +++ b/docker/prod/Dockerfile @@ -13,9 +13,6 @@ ENV SKIP_PIPENV true # Set port to open EXPOSE "${APP_PORT}" -# Run as the unprivileged APP user -USER "${APP_USER}" - # Use dumb-init for proper signal handling ENTRYPOINT ["/usr/bin/dumb-init", "--"] @@ -38,3 +35,6 @@ RUN set -x ; \ # Update file ownership RUN set -x ; \ chown -R atst:atat "${APP_DIR}" + +# Run as the unprivileged APP user +USER "${APP_USER}"