diff --git a/build/COPY_ROOT_0/opt/ai-dock/bin/supervisor-caddy.sh b/build/COPY_ROOT_0/opt/ai-dock/bin/supervisor-caddy.sh index 63eaf58..6ee6ec3 100755 --- a/build/COPY_ROOT_0/opt/ai-dock/bin/supervisor-caddy.sh +++ b/build/COPY_ROOT_0/opt/ai-dock/bin/supervisor-caddy.sh @@ -10,7 +10,7 @@ function start() { source /opt/ai-dock/etc/environment.sh # Give processes time to register their ports - sleep 2 + sleep 4 export SERVICEPORTAL_LOGIN=$(direct-url.sh -p "${SERVICEPORTAL_PORT_HOST:-1111}" -l "/login") env-store SERVICEPORTAL_LOGIN diff --git a/build/Dockerfile b/build/Dockerfile index bab5f11..8cf9f97 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -13,6 +13,7 @@ RUN apt-get update && \ wget https://github.com/caddyserver/xcaddy/releases/download/v0.4.2/xcaddy_0.4.2_linux_amd64.deb && \ apt-get install ./xcaddy_0.4.2_linux_amd64.deb && \ xcaddy build \ + --with github.com/caddyserver/caddy/v2=github.com/ai-dock/caddy/v2@httpredirect \ --with github.com/caddyserver/replace-response && \ mkdir -p /opt/caddy/bin && \ mkdir -p /opt/caddy/tls && \