summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--f3s/git-server/docker-image/Dockerfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/f3s/git-server/docker-image/Dockerfile b/f3s/git-server/docker-image/Dockerfile
index f191443..5b703c0 100644
--- a/f3s/git-server/docker-image/Dockerfile
+++ b/f3s/git-server/docker-image/Dockerfile
@@ -8,7 +8,8 @@ RUN apk add --no-cache openssh git
RUN adduser -D -u 1000 -s /usr/bin/git-shell git && \
mkdir -p /home/git/.ssh /repos && \
chown -R git:git /home/git /repos && \
- echo "/usr/bin/git-shell" >> /etc/shells
+ echo "/usr/bin/git-shell" >> /etc/shells && \
+ passwd -u git
# Copy sshd configuration to /tmp (will be copied to /etc/ssh by entrypoint)
COPY sshd_config /tmp/sshd_config