1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2025-07-01 06:15:45 +00:00

Implemented background dhparam generation

This commit is contained in:
Steve Kamerman
2017-01-11 22:39:04 -05:00
parent f186815c2d
commit dfdd67f5a4
5 changed files with 58 additions and 6 deletions

View File

@ -9,9 +9,8 @@ RUN apt-get update \
&& apt-get clean \
&& rm -r /var/lib/apt/lists/*
# Generate dhparam.pem, configure nginx
RUN openssl dhparam -out /etc/nginx/dhparam.pem 2048 \
&& echo "daemon off;" >> /etc/nginx/nginx.conf
# Configure nginx
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
# Install Forego
ADD https://github.com/jwilder/forego/releases/download/v0.16.1/forego /usr/local/bin/forego
@ -28,7 +27,7 @@ WORKDIR /app/
ENV DOCKER_HOST unix:///tmp/docker.sock
VOLUME ["/etc/nginx/certs"]
VOLUME ["/etc/nginx/certs", "/etc/nginx/dhparam"]
ENTRYPOINT ["/app/docker-entrypoint.sh"]
CMD ["forego", "start", "-r"]