fix(DOCKERFILE): fix errant reference to old user variable

This commit is contained in:
Asif Bacchus 2021-01-07 07:14:01 -07:00
parent 318e595bbd
commit 394f1fdccd

View File

@ -49,10 +49,10 @@ COPY webroot /usr/share/nginx/html/
EXPOSE 80 443 EXPOSE 80 443
# clean-up permissions and run as www-docker user # 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 d -exec chmod 775 {} \; \
&& find /usr/share/nginx/html -type f -exec chmod 664 {} \; \ && 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 d -exec chmod 770 {} \; \
&& find /etc/nginx -type f -exec chmod 660 {} \; && find /etc/nginx -type f -exec chmod 660 {} \;
USER www-docker USER www-docker