FROM nginx:stable-alpine-slim

# having certbot inside nginx container provides better integration with nginx and simplified auto-renewal
# https://eff-certbot.readthedocs.io/en/latest/install.html#alternative-1-docker
RUN apk update \
    && apk upgrade --no-cache \
    && apk add --no-cache certbot openssl \
    && rm -rf /var/cache/apk/*

STOPSIGNAL SIGTERM
