FROM nginx:1.21.0-alpine COPY entrypoint.sh /entrypoint.sh COPY renew /etc/periodic/weekly/renew # Install certbot # Remove default configs RUN apk add --no-cache certbot && \ rm -rf /etc/nginx/conf.d/* ENTRYPOINT [ "./entrypoint.sh" ]