update file ownership in container
This commit is contained in:
parent
0b1aa05579
commit
3f44d37f8f
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user