diff --git a/Dockerfile b/Dockerfile index ae0490a..2437037 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,8 +40,11 @@ ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2 S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 S6_VERBOSI RUN python3 -m venv /app/certbot/ && /app/certbot/bin/pip install --upgrade pip -RUN /app/certbot/bin/pip install certbot certbot-dns-cloudflare && \ - ln -s /app/certbot/bin/certbot /usr/bin/certbot +#Get required packages for building, build, then cleanup +RUN apk add --no-cache --virtual .deps gcc python3-dev libc-dev libffi-dev && \ + /app/certbot/bin/pip install certbot certbot-dns-cloudflare && \ + ln -s /app/certbot/bin/certbot /usr/bin/certbot &&\ + apk del .deps COPY root /