Skip to content

Commit

Permalink
add healthceck
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <[email protected]>
  • Loading branch information
Zoey2936 authored Oct 22, 2023
1 parent f0cbcf2 commit 0c7655f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0c7655f

Please sign in to comment.