Skip to content

Commit

Permalink
Add dumb-init to rootless docker (#21775)
Browse files Browse the repository at this point in the history
Add dumb-init as process reaper to the rootless image to reap defunct git processes.
  • Loading branch information
viceice committed Dec 4, 2022
1 parent 4648584 commit 84d2a82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile.rootless
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ EXPOSE 2222 3000
RUN apk --no-cache add \
bash \
ca-certificates \
dumb-init \
gettext \
git \
curl \
Expand Down Expand Up @@ -68,6 +69,6 @@ ENV HOME "/var/lib/gitea/git"
VOLUME ["/var/lib/gitea", "/etc/gitea"]
WORKDIR /var/lib/gitea

ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
ENTRYPOINT ["/usr/bin/dumb-init", "--", "/usr/local/bin/docker-entrypoint.sh"]
CMD []

0 comments on commit 84d2a82

Please sign in to comment.