git-server-docker-stagit

git-server-with-stagit
git clone git://git.andersuno.nu/git-server-docker-stagit.git
Log | Files | Refs | README

commit a88ca9fea22dfe5fe49dd7b92cc4e30ff6c7e5a2
parent d98ff9ce6c75c1c5b5185ce13f7f99aa75f38549
Author: Anders <anders.hedman01@gmail.com>
Date:   Sun,  1 May 2022 20:38:43 +0200

Added git-daemon and stagit binaries

Diffstat:
MDockerfile | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile @@ -6,7 +6,8 @@ RUN apk add --no-cache \ # openssh=7.2_p2-r1 \ openssh \ # git=2.8.3-r0 - git + git \ + git-daemon # Key generation on the server RUN ssh-keygen -A @@ -32,10 +33,14 @@ RUN mkdir /git-server/public-html # More info: https://git-scm.com/docs/git-shell COPY git-shell-commands /home/git/git-shell-commands +# Stagit binaries +COPY bin /usr/local/bin + # sshd_config file is edited for enable access key and disable access password COPY sshd_config /etc/ssh/sshd_config COPY start.sh start.sh +EXPOSE 9418 EXPOSE 22 CMD ["sh", "start.sh"]