aboutsummaryrefslogtreecommitdiff
path: root/services/docker/git-server/Dockerfile
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-03-07 19:15:31 +0800
committerYuqian Yang <crupest@crupest.life>2025-03-07 19:44:36 +0800
commit3d3979934da0cfd514a0ef900f0f6fb573ceb917 (patch)
tree4ceece0bcadb6dce18e29a02af6a6ba2d30df242 /services/docker/git-server/Dockerfile
parent2c26c4d44142dc1a4739eb28b0d8077f37161a72 (diff)
downloadcrupest-3d3979934da0cfd514a0ef900f0f6fb573ceb917.tar.gz
crupest-3d3979934da0cfd514a0ef900f0f6fb573ceb917.tar.bz2
crupest-3d3979934da0cfd514a0ef900f0f6fb573ceb917.zip
fix(git): public/private repo problem, enable cgit for private.
Diffstat (limited to 'services/docker/git-server/Dockerfile')
-rw-r--r--services/docker/git-server/Dockerfile7
1 files changed, 2 insertions, 5 deletions
diff --git a/services/docker/git-server/Dockerfile b/services/docker/git-server/Dockerfile
index 274ba6a..867021c 100644
--- a/services/docker/git-server/Dockerfile
+++ b/services/docker/git-server/Dockerfile
@@ -5,12 +5,9 @@ RUN apt-get update && apt-get install -y \
rm -rf /var/lib/apt/lists/*
RUN groupadd -g 1000 git && useradd -m -u 1000 -g 1000 -s /usr/bin/bash git
-ENV GIT_CONFIG_SYSTEM=/etc/gitconfig GIT_CONFIG_GLOBAL=/git/private/gitconfig
-
-ADD gitconfig /etc/gitconfig
-ADD hooks/* /etc/git/hooks/
-ADD git-lighttpd.conf git-auth.conf lighttpd-wrapper.bash /app/
+ENV GIT_CONFIG_SYSTEM=/app/git/gitconfig GIT_CONFIG_GLOBAL=/git/gitconfig
+ADD app /app
USER git:git
VOLUME [ "/git" ]
CMD [ "tini", "--", "/app/lighttpd-wrapper.bash" ]