git-server-docker-stagit

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

Dockerfile (429B)


      1 FROM alpine:3.17
      2 
      3 # "--no-cache" is new in Alpine 3.3 and it avoid using
      4 # "--update + rm -rf /var/cache/apk/*" (to remove cache)
      5 RUN apk add --no-cache git-daemon
      6 
      7 WORKDIR /git-server/
      8 
      9 # -D flag avoids password generation
     10 # -s flag changes user's shell
     11 RUN adduser -D -s /usr/bin/git-shell git \
     12   && echo git:12345 | chpasswd
     13 
     14 RUN mkdir /git-server/repos
     15 
     16 USER git
     17 
     18 COPY start.sh start.sh
     19 
     20 EXPOSE 9418
     21 
     22 CMD ["sh", "start.sh"]