Skip to content

Commit

Permalink
add tini
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <[email protected]>
  • Loading branch information
Zoey2936 authored Aug 2, 2023
1 parent 28b0a18 commit 1e8a1b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM alpine:3.18.2
RUN apk add --no-cache ca-certificates tzdata git && \
RUN apk add --no-cache ca-certificates tzdata tini git && \
git config --global --add safe.directory /src

WORKDIR /src
ENV GIT_DIR=/src/.git
ENTRYPOINT while true; do (rm -rf /src/.git/index.lock && git fetch origin && git reset --hard origin && sleep 30) || exit 1; done || exit 1
ENTRYPOINT ["tini", "--", "sh", "-c", "while true; do (rm -rf /src/.git/index.lock && git fetch origin && git reset --hard origin && sleep 30) || exit 1; done || exit 1"]
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

0 comments on commit 1e8a1b4

Please sign in to comment.