summaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile.gitolite
diff options
context:
space:
mode:
Diffstat (limited to 'docker/Dockerfile.gitolite')
-rw-r--r--docker/Dockerfile.gitolite6
1 files changed, 4 insertions, 2 deletions
diff --git a/docker/Dockerfile.gitolite b/docker/Dockerfile.gitolite
index f953c57..66367b5 100644
--- a/docker/Dockerfile.gitolite
+++ b/docker/Dockerfile.gitolite
@@ -22,8 +22,10 @@ VOLUME /var/lib/gitolite
# sshd host keys are stored in a volume so that rebuilding/updating the
# image doesn't break user trust
-RUN ssh-keygen -A
-VOLUME /etc/ssh
+COPY sshd_config /etc/ssh/
+RUN mkdir -p /hostkeys/etc/ssh/
+RUN ssh-keygen -A -f /hostkeys
+VOLUME /hostkeys
EXPOSE 22
CMD ["/usr/bin/sshd", "-D"]