FROM docker.io/nginx:latest as base ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update \ && apt-get install -y --no-install-recommends \ cron \ python3-certbot-nginx \ && rm -rf /var/lib/apt/lists/* COPY cron.d/ /etc/cron.d/ COPY entrypoint.d/ /docker-entrypoint.d/ COPY default.conf /tmp/ VOLUME /etc/nginx/conf.d/ /etc/letsencrypt/