diff --git a/Dockerfile b/Dockerfile index 4ef2c70..081d8ac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,10 +10,6 @@ RUN apt-get update \ && apt-get clean \ && rm -r /var/lib/apt/lists/* -ENV AUTO_UPGRADE=1 -ENV LE_WORKING_DIR=/acme.sh -ENV LE_CONFIG_HOME=/acmecerts -RUN wget -O- https://get.acme.sh | sh # Configure Nginx and apply fix for very long server names RUN echo "daemon off;" >> /etc/nginx/nginx.conf \ @@ -36,6 +32,11 @@ ENV DOCKER_HOST unix:///tmp/docker.sock VOLUME ["/etc/nginx/certs"] +ENV AUTO_UPGRADE=1 +ENV LE_WORKING_DIR=/acme.sh +ENV LE_CONFIG_HOME=/acmecerts +RUN wget -O- https://get.acme.sh | sh + VOLUME ["/acmecerts"] EXPOSE 443