update file ownership in container

This commit is contained in:
James Brumond 2023-08-19 13:40:47 -07:00
parent 0b1aa05579
commit 3f44d37f8f
Signed by: james
GPG Key ID: E8F2FC44BAA3357A

View File

@ -16,10 +16,9 @@ FROM nginx:${NGINX_VERSION} AS deploy_stage
EXPOSE 80 EXPOSE 80
# copy actual web content built above # copy actual web content built above
COPY --from=build_stage /workspace/www/ /usr/share/nginx/html COPY --from=build_stage --chown=nginx:nginx /workspace/www/ /usr/share/nginx/html
RUN chmod -R +rX /usr/share/nginx/html
# nginx config files # nginx config files
COPY conf/nginx.conf /etc/nginx/nginx.conf COPY --chown=nginx:nginx conf/nginx.conf /etc/nginx/nginx.conf
COPY conf/default.conf /etc/nginx/conf.d/default.conf COPY --chown=nginx:nginx conf/default.conf /etc/nginx/conf.d/default.conf
COPY conf/mime.types /etc/nginx/mime.types COPY --chown=nginx:nginx conf/mime.types /etc/nginx/mime.types