From 0c7655ff10a49201b9498ce88ea8b7b886187df5 Mon Sep 17 00:00:00 2001 From: Zoey Date: Sun, 22 Oct 2023 18:50:05 +0200 Subject: [PATCH] add healthceck Signed-off-by: Zoey --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9f662c5..b2aff39 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,13 @@ FROM alpine:3.18.4 COPY update.sh /usr/local/bin/update.sh -RUN apk add --no-cache ca-certificates tzdata tini curl +COPY healthcheck.sh /usr/local/bin/healthcheck.sh +RUN apk add --no-cache ca-certificates tzdata tini curl && \ + chmod -R 777 /tmp ENV IPv4=true \ IPv6=true \ UI=5m +USER nobody ENTRYPOINT ["tini", "--", "update.sh"] -#HEALTHCHECK CMD (rm -rf /src/.git/index.lock && git fetch origin > /dev/null 2>&1 && git reset --hard origin > /dev/null 2>&1) || exit 1 +HEALTHCHECK CMD healthcheck.sh || exit 1