mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-02 15:51: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
|
||||
|
||||
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}
|
||||
|
|
|
|||
6
init.sh
6
init.sh
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue