First semiworking iteration
Container can be started with empty data directory. After using docker exec the commands from the NOTES file can be used to create a first cert and additional certs after that.
This commit is contained in:
18
Dockerfile
18
Dockerfile
@@ -1,16 +1,24 @@
|
||||
FROM debian
|
||||
FROM debian8_python3
|
||||
|
||||
MAINTAINER Joachim Lusiardi
|
||||
|
||||
RUN apt-get update; \
|
||||
apt-get install -y haproxy;
|
||||
apt-get install -y \
|
||||
git \
|
||||
haproxy; \
|
||||
git clone https://github.com/letsencrypt/letsencrypt ;\
|
||||
cd /letsencrypt ;\
|
||||
./letsencrypt-auto --help
|
||||
|
||||
ADD haproxy_ssl.conf /haproxy_ssl.conf
|
||||
ADD haproxy.conf /haproxy.conf
|
||||
ADD letencrypt.conf /letencrypt.conf
|
||||
|
||||
ADD start.sh /start.sh
|
||||
RUN chmod +x /start.sh
|
||||
ADD start.py /start.py
|
||||
RUN chmod +x /start.py
|
||||
|
||||
VOLUME ["/data"]
|
||||
|
||||
EXPOSE 80
|
||||
EXPOSE 443
|
||||
ENTRYPOINT /start.sh
|
||||
ENTRYPOINT /start.py
|
||||
|
||||
Reference in New Issue
Block a user