-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (31 loc) · 984 Bytes
/
Copy pathDockerfile
File metadata and controls
36 lines (31 loc) · 984 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
32
33
34
35
36
FROM ubuntu:latest
RUN \
apt-get update && \
apt-get -y dist-upgrade && \
apt-get install -y --no-install-recommends \
openssl \
curl \
dnsutils \
openssh-client \
ca-certificates \
cron \
supervisor \
docker.io && \
curl --silent https://raw.githubusercontent.com/srvrco/getssl/master/getssl > /usr/sbin/getssl && \
chmod 700 /usr/sbin/getssl && \
apt-get clean -y && \
apt-get autoclean -y && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/* /var/lib/log/* /tmp/* /var/tmp/*
ADD ./docker/cron/getssl /etc/cron.d/
ADD ./docker/supervisor/supervisord.conf /etc/
ADD ./docker/supervisor/services /etc/supervisord.d/
ADD ./docker/getssl/configure.sh /usr/sbin/
ADD ./docker/getssl/reload.sh /usr/sbin/
ADD ./docker/getssl/template.cfg /root/
ADD ./docker/getssl/base_template.cfg /root/
VOLUME /root/.getssl
VOLUME /root/ssl
VOLUME /root/acme-challenge
WORKDIR /root
CMD ["supervisord", "--nodaemon", "--configuration", "/etc/supervisord.conf"]