From 23fd6e8fc96065f3229c42d21c83e9ca1309aa6c Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Wed, 26 Feb 2025 22:31:34 +0800 Subject: feat(git): add protected refs. --- services/docker/git-server/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'services/docker/git-server/Dockerfile') diff --git a/services/docker/git-server/Dockerfile b/services/docker/git-server/Dockerfile index 8a671d7..b725122 100644 --- a/services/docker/git-server/Dockerfile +++ b/services/docker/git-server/Dockerfile @@ -4,6 +4,10 @@ RUN apt-get update && apt-get install -y \ tar gzip bzip2 zip unzip tini && \ rm -rf /var/lib/apt/lists/* +ENV GIT_CONFIG_SYSTEM=/etc/gitconfig GIT_CONFIG_GLOBAL=/git/private/gitconfig + +ADD gitconfig /etc/gitconfig +ADD --chmod=755 hooks/* /etc/git/hooks/ ADD git-lighttpd.conf git-auth.conf /app/ ADD --chmod=755 lighttpd-wrapper.bash /app/ -- cgit v1.2.3