forked from SteveLTN/https-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (21 loc) · 1 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
FROM nginx
MAINTAINER Weiyan Shao "[email protected]"
WORKDIR /root
ENV DOCKER_GEN_VERSION 0.7.0
ADD https://github.com/just-containers/s6-overlay/releases/download/v1.11.0.1/s6-overlay-amd64.tar.gz /tmp/
ADD https://github.com/jwilder/docker-gen/releases/download/$DOCKER_GEN_VERSION/docker-gen-linux-amd64-$DOCKER_GEN_VERSION.tar.gz /tmp/
ADD https://raw.githubusercontent.com/diafygi/acme-tiny/fcb7cd6f66e951eeae76ff2f48d8ad3e40da37ef/acme_tiny.py /bin/acme_tiny
RUN tar xzf /tmp/s6-overlay-amd64.tar.gz -C / &&\
tar -C /bin -xzf /tmp/docker-gen-linux-amd64-$DOCKER_GEN_VERSION.tar.gz && \
rm /tmp/docker-gen-linux-amd64-$DOCKER_GEN_VERSION.tar.gz && \
rm /tmp/s6-overlay-amd64.tar.gz && \
rm /etc/nginx/conf.d/default.conf && \
apt-get update && \
apt-get install -y python ruby cron && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY ./fs_overlay /
RUN chmod a+x /bin/* && \
chmod a+x /etc/cron.weekly/renew_certs
VOLUME /var/lib/https-portal
ENTRYPOINT ["/init"]