-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-lendd
executable file
·47 lines (39 loc) · 1.59 KB
/
Dockerfile-lendd
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
FROM nginx:1.13.9
# Setup directories
RUN mkdir -p /app/dehydrated
RUN mkdir -p /etc/dehydrated
# ---------------------------------------------------------
# Install required dependencies:
#
# ca-certificates Required for git and pip (and other things downloading over https/ssl (?)).
# cron Used to periodically check and update SSL certificates.
# curl Required by the Dehydrated client.
# git For downloading the Dehydrated client.
# python-setuptools Contains easy_install, which is used to install pip.
# ---------------------------------------------------------
RUN apt-get update
RUN apt-get install -y ca-certificates cron curl git python-setuptools
# ---------------------------------------------------------
# Install the dehydrated client. Note this checks out a
# specific commit. Update checkout command as needed.
# ---------------------------------------------------------
WORKDIR /app/dehydrated
RUN git clone -n https://github.com/lukas2511/dehydrated.git ./
RUN git checkout c0bcf91
# ---------------------------------------------------------
# Install python libraries:
# - requests
# - dns-lexicon (allows interaction with cloudflare api)
# ---------------------------------------------------------
RUN easy_install pip
RUN pip install requests[security]
RUN pip install dns-lexicon
# Copy crontab
COPY ./crontab /etc/crontab
# Setup cron
RUN crontab /etc/crontab
RUN touch /var/log/cron
# Copy startup script
COPY ./startup.sh /app/startup.sh
# Startup command
CMD [ "/app/startup.sh" ]