Dockerfile raw

   1  FROM alpine:latest
   2  RUN apk add --no-cache git openssh-server && \
   3      adduser -D -s /usr/bin/git-shell git && \
   4      ssh-keygen -A && \
   5      mkdir -p /home/git/.ssh && \
   6      chmod 700 /home/git/.ssh && \
   7      chown -R git:git /home/git
   8  COPY gitweb /usr/local/bin/gitweb
   9  COPY docker/sshd_config /etc/ssh/sshd_config_git
  10  COPY docker/entrypoint.sh /entrypoint.sh
  11  RUN chmod +x /entrypoint.sh /usr/local/bin/gitweb
  12  EXPOSE 3000 2222
  13  VOLUME ["/home/git"]
  14  ENTRYPOINT ["/entrypoint.sh"]
  15