2020-05-16 19:03:54 +02:00
|
|
|
FROM debian:10
|
2016-04-03 09:08:55 +02:00
|
|
|
|
|
|
|
MAINTAINER Joachim Lusiardi
|
|
|
|
|
|
|
|
RUN apt-get update; \
|
2016-04-06 20:26:08 +02:00
|
|
|
apt-get install -y \
|
2019-06-03 09:06:27 +02:00
|
|
|
python3-pip \
|
2016-04-06 20:26:08 +02:00
|
|
|
git \
|
|
|
|
haproxy; \
|
|
|
|
git clone https://github.com/letsencrypt/letsencrypt ;\
|
|
|
|
cd /letsencrypt ;\
|
|
|
|
./letsencrypt-auto --help
|
2016-04-07 08:03:13 +02:00
|
|
|
RUN pip3 install docker-py
|
2016-04-03 09:08:55 +02:00
|
|
|
|
2016-04-06 20:26:08 +02:00
|
|
|
ADD haproxy_ssl.conf /haproxy_ssl.conf
|
2016-04-03 09:08:55 +02:00
|
|
|
ADD haproxy.conf /haproxy.conf
|
2016-04-12 07:05:24 +02:00
|
|
|
ADD letsencrypt.conf /letsencrypt.conf
|
2016-04-03 09:08:55 +02:00
|
|
|
|
2016-04-06 20:26:08 +02:00
|
|
|
ADD start.py /start.py
|
2016-04-07 08:03:13 +02:00
|
|
|
ADD list_domains.py /list_domains.py
|
|
|
|
RUN chmod +x /*.py
|
2016-04-03 09:08:55 +02:00
|
|
|
|
|
|
|
VOLUME ["/data"]
|
|
|
|
|
2016-04-06 20:26:08 +02:00
|
|
|
EXPOSE 80
|
2016-04-03 09:08:55 +02:00
|
|
|
EXPOSE 443
|
2016-04-06 20:26:08 +02:00
|
|
|
ENTRYPOINT /start.py
|