-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (23 loc) · 806 Bytes
/
Dockerfile
File metadata and controls
31 lines (23 loc) · 806 Bytes
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
FROM cyon/acmetool:0.0.56-0
MAINTAINER Dominic Luechinger 'dol@cyon.ch'
ENV NAMESERVER_LIST_PATH /var/lib/acme/cache
RUN apk add --no-cache \
ca-certificates \
su-exec \
&& su-exec acmetool true
COPY requirements.txt /requirements.txt
RUN set -ex && \
pip3 install --no-cache-dir --ignore-installed -r requirements.txt && \
find /usr/local -depth \
\( \
\( -type d -a -name test -o -name tests \) \
-o \
\( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
\) -exec rm -rf '{}' + && \
rm -rf /usr/src/python ~/.cache
COPY bin/acmetool_update_dns /usr/bin
COPY hooks/dns_challenge /usr/lib/acme/hooks/
COPY hooks/live-updated /usr/lib/acme/hooks/
RUN chmod +x /usr/lib/acme/hooks/dns_challenge
# Start with the batch mode
CMD ["--", "--batch"]