# 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.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;" ]