dynamic reload of nginx by sending SIGHUP

This commit is contained in:
bunkerity
2020-12-09 17:00:09 +01:00
parent 15e74e4860
commit 92569679b6
9 changed files with 144 additions and 58 deletions

View File

@@ -1,11 +1,15 @@
FROM alpine
RUN apk add py3-pip && \
pip3 install docker
RUN apk add py3-pip apache2-utils bash && \
pip3 install docker && \
mkdir /opt/entrypoint && \
mkdir -p /opt/confs/site
COPY *.py /opt/
RUN chmod +x /opt/entrypoint.py
COPY confs/site/ /opt/confs/site
COPY entrypoint/* /opt/entrypoint/
COPY autoconf/* /opt/entrypoint/
RUN chmod +x /opt/entrypoint/*.py /opt/entrypoint/*.sh
VOLUME /etc/nginx
ENTRYPOINT ["/opt/entrypoint.py"]
ENTRYPOINT ["/opt/entrypoint/entrypoint.py"]