update permissions
This commit is contained in:
parent
b14fe19ece
commit
c9c4becf14
@ -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="_"
|
||||
|
Loading…
Reference in New Issue
Block a user