From 074ce101e4507cc0fa3145c8c5e1d0547df215cd Mon Sep 17 00:00:00 2001 From: Teddysun Date: Thu, 12 Nov 2020 15:50:24 +0900 Subject: [PATCH] Update Dockerfile --- docker/caddy/Dockerfile | 4 +++- docker/caddy/Dockerfile.architecture | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docker/caddy/Dockerfile b/docker/caddy/Dockerfile index b5a2cc0..f29ba72 100644 --- a/docker/caddy/Dockerfile +++ b/docker/caddy/Dockerfile @@ -27,6 +27,8 @@ COPY index.html /usr/share/caddy/index.html # See https://caddyserver.com/docs/conventions#file-locations for details ENV XDG_CONFIG_HOME /config ENV XDG_DATA_HOME /data +# Let's Encrypt Agreement +ENV ACME_AGREE="false" VOLUME /etc/caddy VOLUME /config @@ -37,4 +39,4 @@ EXPOSE 443 EXPOSE 2015 ENV TZ=Asia/Shanghai -CMD [ "/usr/bin/caddy", "-conf", "/etc/caddy/Caddyfile" ] +CMD [ "/usr/bin/caddy", "-conf", "/etc/caddy/Caddyfile", "-agree=$ACME_AGREE" ] diff --git a/docker/caddy/Dockerfile.architecture b/docker/caddy/Dockerfile.architecture index 4d1d8ef..f7fe7ab 100644 --- a/docker/caddy/Dockerfile.architecture +++ b/docker/caddy/Dockerfile.architecture @@ -28,6 +28,8 @@ COPY index.html /usr/share/caddy/index.html # See https://caddyserver.com/docs/conventions#file-locations for details ENV XDG_CONFIG_HOME /config ENV XDG_DATA_HOME /data +# Let's Encrypt Agreement +ENV ACME_AGREE="false" VOLUME /etc/caddy VOLUME /config @@ -38,4 +40,4 @@ EXPOSE 443 EXPOSE 2015 ENV TZ=Asia/Shanghai -CMD [ "/usr/bin/caddy", "-conf", "/etc/caddy/Caddyfile" ] +CMD [ "/usr/bin/caddy", "-conf", "/etc/caddy/Caddyfile", "-agree=$ACME_AGREE" ]