22 lines
521 B
Docker
22 lines
521 B
Docker
# NAME leenooks/nginx
|
|
# VERSION latest
|
|
|
|
FROM nginx:latest
|
|
COPY etc/nginx/default.d /etc/nginx/default.d
|
|
COPY var/www/maintenance /var/www/maintenance
|
|
|
|
RUN apt-get update && apt-get install certbot -yyq \
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/*
|
|
|
|
EXPOSE 80 443
|
|
|
|
COPY renew.sh /usr/local/sbin
|
|
LABEL cron.container.weekly root:/usr/local/sbin/renew.sh
|
|
|
|
# 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;" ]
|