-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
37 lines (29 loc) · 1.23 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
FROM library/alpine:3.11
# Credit: @frol for python3 - https://github.com/frol/docker-alpine-python3/blob/master/Dockerfile
# deps - python3 openssl curl sed grep mktemp
# boto3 - AWS SDK for python
RUN apk add --no-cache --virtual .build-deps git build-base libffi-dev openssl-dev \
&& apk add --no-cache --virtual .dehydrated-rundeps python3-dev bash openssl curl \
&& pip3 install --upgrade pip boto3 dns-lexicon dns-lexicon[route53] dns-lexicon[transip] \
&& rm -r /root/.cache \
&& cd /tmp \
&& git clone https://github.com/lukas2511/dehydrated.git \
&& cd dehydrated \
&& git checkout tags/v0.6.5 \
&& cd .. \
&& chmod a+x dehydrated/dehydrated \
&& mv dehydrated/dehydrated /usr/bin/ \
&& git clone https://github.com/AnalogJ/lexicon.git \
&& cd lexicon \
&& git checkout tags/v3.3.17 \
&& cd .. \
&& chmod a+x lexicon/examples/dehydrated.default.sh \
&& mv lexicon/examples/dehydrated.default.sh /usr/bin/dehydrated-dns \
&& rm -rf /tmp/* \
&& apk del .build-deps
COPY config /etc/dehydrated/config
COPY docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
HEALTHCHECK --interval=5s --timeout=3s \
CMD ps aux | grep '[d]ehydrated' || exit 1
CMD ["dehydrated","-h"]