This repository has been archived by the owner on Jul 20, 2022. It is now read-only.
generated from homecentr/docker-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
55 lines (47 loc) · 1.7 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
FROM certbot/certbot:v1.17.0 as certbot
FROM homecentr/cron-base:2.0.2
ARG CERTBOT_PIP_VERSION="1.17.0"
ENV CERTBOT_ARGS=""
ENV CRON_SCHEDULE="30 * * * *"
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2
COPY --from=certbot /usr/local/bin/certbot /usr/local/bin/certbot
RUN apk add --no-cache \
python3=3.9.5-r1 \
# Required from Certbot version 1.5.0
py3-six=1.15.0-r1 \
py3-requests=2.25.1-r4 \
py3-distro=1.5.0-r3 \
py3-wheel=0.36.2-r2 \
py3-setuptools=52.0.0-r3 && \
apk add --no-cache --virtual deps \
python3-dev=3.9.5-r1 \
py3-pip=20.3.4-r1 \
gcc=10.3.1_git20210424-r2 \
libffi-dev=3.3-r2 \
openssl-dev=1.1.1k-r0 \
musl-dev=1.2.2-r3 \
cargo=1.52.1-r1 \
&& \
pip3 install --no-cache-dir --upgrade pip==21.1.3 && \
pip3 install --no-cache-dir \
# setuptools==57.1.0 \
acme==${CERTBOT_PIP_VERSION} \
certbot==${CERTBOT_PIP_VERSION} \
certbot-dns-cloudflare==${CERTBOT_PIP_VERSION} \
certbot-dns-cloudxns==${CERTBOT_PIP_VERSION} \
certbot-dns-digitalocean==${CERTBOT_PIP_VERSION} \
certbot-dns-dnsimple==${CERTBOT_PIP_VERSION} \
certbot-dns-dnsmadeeasy==${CERTBOT_PIP_VERSION} \
certbot-dns-google==${CERTBOT_PIP_VERSION} \
certbot-dns-linode==${CERTBOT_PIP_VERSION} \
certbot-dns-luadns==${CERTBOT_PIP_VERSION} \
certbot-dns-nsone==${CERTBOT_PIP_VERSION} \
certbot-dns-ovh==${CERTBOT_PIP_VERSION} \
certbot-dns-rfc2136==${CERTBOT_PIP_VERSION} \
certbot-dns-route53==${CERTBOT_PIP_VERSION} && \
apk del deps
COPY ./fs/ /
RUN mkdir /logs && chmod 0777 /logs
VOLUME "/etc/letsencrypt"
VOLUME "/data"
VOLUME "/logs"