update permissions

This commit is contained in:
Asif Bacchus 2019-11-09 20:01:29 -07:00
parent b14fe19ece
commit c9c4becf14

View File

@ -19,7 +19,7 @@ LABEL org.label-schema.schema-version="1.0"
LABEL org.label-schema.url="https://git.asifbacchus.app/ab-docker/ab-nginx"
LABEL org.label-schema.usage="https://git.asifbacchus.app/ab-docker/ab-nginx/wiki"
LABEL org.label-schema.vcs-url="https://git.asifbacchus.app/ab-docker/ab-nginx.git"
LABEL org.label-schema.version="1.01"
LABEL org.label-schema.version="1.05"
# copy configuration files
COPY entrypoint.sh /entrypoint.sh
@ -30,6 +30,14 @@ COPY webroot /usr/share/nginx/html/
# expose ports
EXPOSE 80 443
# clean-up permissions
RUN chown -R nginx:nginx /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 nginx:nginx /etc/nginx \
&& find /etc/nginx -type d -exec chmod 770 {} \; \
&& find /etc/nginx -type f -exec chmod 660 {} \;
# default environment variables
ENV TZ=Etc/UTC
ENV SERVER_NAMES="_"