docker-playground/git-daemon/Dockerfile

19 lines
277 B
Docker

FROM debian:latest
ENV DEBIAN_FRONTEND noninteractive
# Install git
RUN apt-get update -qq
RUN apt-get install -qqy git
RUN useradd -u 30001 -g ssh git-daemon
ADD git-daemon.sh /usr/bin/git-daemon.sh
VOLUME /git
# git daemon ports
EXPOSE 9418
CMD /usr/bin/git-daemon.sh