This commit is contained in:
WJQSERVER 2024-11-05 11:28:11 +08:00
parent d9cc088dce
commit b6c4dbbf9c
2 changed files with 7 additions and 1 deletions

View file

@ -38,6 +38,8 @@ RUN chmod +x /usr/local/bin/init.sh
FROM wjqserver/caddy:2.9.0-rc2-alpine
RUN apk add --no-cache curl
COPY --from=builder /data/www /data/www
COPY --from=builder /data/caddy /data/caddy
COPY --from=builder /data/${APPLICATION} /data/${APPLICATION}

View file

@ -22,7 +22,11 @@ fi
/data/${APPLICATON}/${APPLICATON} > /data/${APPLICATON}/log/run.log 2>&1 &
sleep 30
while [[ true ]]; do
sleep 1
# 健康检查
curl -f http://localhost:8080/api/healthcheck || exit 1
sleep 120
done