mirror of
https://github.com/teddysun/across.git
synced 2025-01-19 06:19:35 +08:00
Update Dockerfile
This commit is contained in:
parent
26739e9ae6
commit
074ce101e4
@ -27,6 +27,8 @@ 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
|
||||||
@ -37,4 +39,4 @@ EXPOSE 443
|
|||||||
EXPOSE 2015
|
EXPOSE 2015
|
||||||
|
|
||||||
ENV TZ=Asia/Shanghai
|
ENV TZ=Asia/Shanghai
|
||||||
CMD [ "/usr/bin/caddy", "-conf", "/etc/caddy/Caddyfile" ]
|
CMD [ "/usr/bin/caddy", "-conf", "/etc/caddy/Caddyfile", "-agree=$ACME_AGREE" ]
|
||||||
|
@ -28,6 +28,8 @@ 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
|
||||||
@ -38,4 +40,4 @@ EXPOSE 443
|
|||||||
EXPOSE 2015
|
EXPOSE 2015
|
||||||
|
|
||||||
ENV TZ=Asia/Shanghai
|
ENV TZ=Asia/Shanghai
|
||||||
CMD [ "/usr/bin/caddy", "-conf", "/etc/caddy/Caddyfile" ]
|
CMD [ "/usr/bin/caddy", "-conf", "/etc/caddy/Caddyfile", "-agree=$ACME_AGREE" ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user