summaryrefslogtreecommitdiffstats
path: root/Dockerfile.rootless
diff options
context:
space:
mode:
authorMichael Kriese <michael.kriese@visualon.de>2022-12-04 12:12:06 +0100
committerGitHub <noreply@github.com>2022-12-04 11:12:06 +0000
commit84d2a820e59f0d96d818d40205d705deab2af576 (patch)
tree54530ecbb39d976be3110882a855395245a1bbfa /Dockerfile.rootless
parent46485848fa8580d7d1994e602590d5ac981110b7 (diff)
downloadgitea-84d2a820e59f0d96d818d40205d705deab2af576.tar.gz
gitea-84d2a820e59f0d96d818d40205d705deab2af576.zip
Add dumb-init to rootless docker (#21775)
Add dumb-init as process reaper to the rootless image to reap defunct git processes.
Diffstat (limited to 'Dockerfile.rootless')
-rw-r--r--Dockerfile.rootless3
1 files changed, 2 insertions, 1 deletions
diff --git a/Dockerfile.rootless b/Dockerfile.rootless
index 46a14eae87..a43a63fa10 100644
--- a/Dockerfile.rootless
+++ b/Dockerfile.rootless
@@ -31,6 +31,7 @@ EXPOSE 2222 3000
RUN apk --no-cache add \
bash \
ca-certificates \
+ dumb-init \
gettext \
git \
curl \
@@ -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 []