nginx/Dockerfile

22 lines
521 B
Docker
Raw Normal View History

2016-08-22 02:11:35 +00:00
# NAME leenooks/nginx
# VERSION latest
2018-01-29 11:02:41 +00:00
FROM nginx:latest
COPY etc/nginx/default.d /etc/nginx/default.d
COPY var/www/maintenance /var/www/maintenance
2016-08-22 02:11:35 +00:00
2018-01-29 11:02:41 +00:00
RUN apt-get update && apt-get install certbot -yyq \
&& rm -rf /var/lib/apt/lists/* /tmp/*
2016-08-22 02:11:35 +00:00
EXPOSE 80 443
COPY renew.sh /usr/local/sbin
2018-02-27 13:27:13 +00:00
LABEL cron.container.weekly root:/usr/local/sbin/renew.sh
2016-08-22 02:11:35 +00:00
# Expose our web root and log directories log.
#VOLUME [ "/etc/nginx/conf.d", "/etc/nginx/default.d" ]
# Starting
ENTRYPOINT [ "/usr/sbin/nginx" ]
CMD [ "-g daemon off;" ]