Update Dockerfile

This commit is contained in:
Teddysun 2020-11-12 15:50:24 +09:00
parent 26739e9ae6
commit 074ce101e4
No known key found for this signature in database
GPG Key ID: 09BD4C080AD6C46D
2 changed files with 6 additions and 2 deletions

View File

@ -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" ]

View File

@ -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" ]