mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 08:11:11 +08:00
24w22a
This commit is contained in:
parent
d9cc088dce
commit
b6c4dbbf9c
2 changed files with 7 additions and 1 deletions
|
|
@ -38,6 +38,8 @@ RUN chmod +x /usr/local/bin/init.sh
|
||||||
|
|
||||||
FROM wjqserver/caddy:2.9.0-rc2-alpine
|
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/www /data/www
|
||||||
COPY --from=builder /data/caddy /data/caddy
|
COPY --from=builder /data/caddy /data/caddy
|
||||||
COPY --from=builder /data/${APPLICATION} /data/${APPLICATION}
|
COPY --from=builder /data/${APPLICATION} /data/${APPLICATION}
|
||||||
|
|
|
||||||
6
init.sh
6
init.sh
|
|
@ -22,7 +22,11 @@ fi
|
||||||
|
|
||||||
/data/${APPLICATON}/${APPLICATON} > /data/${APPLICATON}/log/run.log 2>&1 &
|
/data/${APPLICATON}/${APPLICATON} > /data/${APPLICATON}/log/run.log 2>&1 &
|
||||||
|
|
||||||
|
sleep 30
|
||||||
|
|
||||||
while [[ true ]]; do
|
while [[ true ]]; do
|
||||||
sleep 1
|
# 健康检查
|
||||||
|
curl -f http://localhost:8080/api/healthcheck || exit 1
|
||||||
|
sleep 120
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue