Update Dockerfile

This commit is contained in:
Teddysun 2020-11-12 16:32:39 +09:00
parent a155a07464
commit 72513bfedb
No known key found for this signature in database
GPG Key ID: 09BD4C080AD6C46D
2 changed files with 4 additions and 12 deletions

View File

@ -27,16 +27,12 @@ COPY index.html /usr/share/caddy/index.html
# See https://caddyserver.com/docs/conventions#file-locations for details # See https://caddyserver.com/docs/conventions#file-locations for details
ENV XDG_CONFIG_HOME /config ENV XDG_CONFIG_HOME /config
ENV XDG_DATA_HOME /data ENV XDG_DATA_HOME /data
# Let's Encrypt Agreement
ENV ACME_AGREE="false"
VOLUME /etc/caddy VOLUME /etc/caddy
VOLUME /config VOLUME /config
VOLUME /data VOLUME /data
EXPOSE 80 EXPOSE 80 443 2015
EXPOSE 443
EXPOSE 2015
ENV TZ=Asia/Shanghai ENV TZ=Asia/Shanghai
CMD [ "/usr/bin/caddy", "--conf", "/etc/caddy/Caddyfile", "--agree=$ACME_AGREE" ] CMD [ "/usr/bin/caddy", "-conf", "/etc/caddy/Caddyfile", "-agree" ]

View File

@ -28,16 +28,12 @@ COPY index.html /usr/share/caddy/index.html
# See https://caddyserver.com/docs/conventions#file-locations for details # See https://caddyserver.com/docs/conventions#file-locations for details
ENV XDG_CONFIG_HOME /config ENV XDG_CONFIG_HOME /config
ENV XDG_DATA_HOME /data ENV XDG_DATA_HOME /data
# Let's Encrypt Agreement
ENV ACME_AGREE="false"
VOLUME /etc/caddy VOLUME /etc/caddy
VOLUME /config VOLUME /config
VOLUME /data VOLUME /data
EXPOSE 80 EXPOSE 80 443 2015
EXPOSE 443
EXPOSE 2015
ENV TZ=Asia/Shanghai ENV TZ=Asia/Shanghai
CMD [ "/usr/bin/caddy", "--conf", "/etc/caddy/Caddyfile", "--agree=$ACME_AGREE" ] CMD [ "/usr/bin/caddy", "-conf", "/etc/caddy/Caddyfile", "-agree" ]