forked from matrix-org/docker-dehydrated
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
50 lines (44 loc) · 1.14 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
FROM docker.io/alpine:3.11
LABEL maintainer="Jan Christian Grünhage <[email protected]>"
ENV UID=1337 \
GID=1337
RUN apk add --no-cache \
--virtual .build-deps \
git \
python3-dev \
libffi-dev \
build-base \
openssl-dev \
py2-pip \
&& apk add --no-cache \
--virtual .runtime-deps \
openssl \
curl \
sed \
grep \
bash \
s6 \
su-exec \
libxml2-utils \
py2-pip \
python3 \
&& mkdir -p /opt \
&& git clone https://github.com/lukas2511/dehydrated.git /opt/dehydrated \
&& pip3 install requests[security] \
&& pip3 install dns-lexicon \
&& pip2 install j2cli[yaml] \
&& apk del .build-deps
ENV \
DEHYDRATED_CA="https://acme-staging-v02.api.letsencrypt.org/directory" \
DEHYDRATED_CHALLENGE="http-01" \
DEHYDRATED_KEYSIZE="4096" \
DEHYDRATED_KEY_ALGO="rsa" \
DEHYDRATED_HOOK="" \
DEHYDRATED_RENEW_DAYS="30" \
DEHYDRATED_KEY_RENEW="yes" \
DEHYDRATED_ACCEPT_TERMS="no" \
DEHYDRATED_EMAIL="[email protected]" \
DEHYDRATED_GENERATE_CONFIG="yes"
ADD root /
VOLUME /data
CMD ["/bin/s6-svscan", "/etc/s6.d"]