Skip to content

Commit

Permalink
smaller image
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoey2936 committed Mar 21, 2023
1 parent 0ba45c5 commit eb23eeb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
FROM alpine:3.17.2
RUN apk upgrade --no-cache && \
apk add --no-cache ca-certificates tzdata git && \
RUN apk add --no-cache ca-certificates tzdata git && \
git config --global --add safe.directory /src

ENV GIT_DIR=/src/.git
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
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 eb23eeb

Please sign in to comment.