-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
34 lines (26 loc) · 814 Bytes
/
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
FROM ubuntu:18.04
MAINTAINER Anton Lebedev <[email protected]>
# Install cron.
RUN apt-get update \
&& apt-get -y install cron curl jq
# Install certbot.
RUN apt-get update \
&& apt-get install -y software-properties-common \
&& add-apt-repository -y universe \
&& add-apt-repository -y ppa:certbot/certbot \
&& apt-get update \
&& apt-get -y install certbot
RUN apt-get install -y uuid-runtime
COPY crontab /tmp/crontab
COPY entrypoint.sh /
COPY renew.sh /
COPY upload.sh /
COPY letsencrypt-dns-authenticator.sh /
COPY letsencrypt-dns-cleanup.sh /
RUN chmod +x /entrypoint.sh \
&& chmod +x /renew.sh \
&& chmod +x /upload.sh \
&& chmod +x /letsencrypt-dns-authenticator.sh \
&& chmod +x /letsencrypt-dns-cleanup.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["cron", "-f"]