From 394f1fdccdbcd37e3debfd08eaf34342bd076701 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Thu, 7 Jan 2021 07:14:01 -0700 Subject: [PATCH] fix(DOCKERFILE): fix errant reference to old user variable --- build/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/Dockerfile b/build/Dockerfile index 456cccc..f1ee765 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -49,10 +49,10 @@ COPY webroot /usr/share/nginx/html/ EXPOSE 80 443 # clean-up permissions and run as www-docker user -RUN chown -R ${USER}:${USER} /usr/share/nginx/html \ +RUN chown -R www-docker:www-docker /usr/share/nginx/html \ && find /usr/share/nginx/html -type d -exec chmod 775 {} \; \ && find /usr/share/nginx/html -type f -exec chmod 664 {} \; \ - && chown -R ${USER}:${USER} /etc/nginx \ + && chown -R www-docker:www-docker /etc/nginx \ && find /etc/nginx -type d -exec chmod 770 {} \; \ && find /etc/nginx -type f -exec chmod 660 {} \; USER www-docker