Dockerfile 733 B

123456789101112131415161718192021222324
  1. FROM alpine:3.3
  2. MAINTAINER jp@roemer.im
  3. # Install system utils & Gogs runtime dependencies
  4. ADD https://github.com/tianon/gosu/releases/download/1.6/gosu-amd64 /usr/sbin/gosu
  5. RUN echo "@edge http://dl-4.alpinelinux.org/alpine/edge/main" | tee -a /etc/apk/repositories \
  6. && apk -U --no-progress upgrade \
  7. && apk -U --no-progress add ca-certificates bash git linux-pam s6@edge curl openssh socat \
  8. && chmod +x /usr/sbin/gosu
  9. ENV GOGS_CUSTOM /data/gogs
  10. COPY . /app/gogs/
  11. WORKDIR /app/gogs/
  12. RUN ./docker/build.sh
  13. # Configure LibC Name Service
  14. COPY docker/nsswitch.conf /etc/nsswitch.conf
  15. # Configure Docker Container
  16. VOLUME ["/data"]
  17. EXPOSE 22 3000
  18. ENTRYPOINT ["docker/start.sh"]
  19. CMD ["/bin/s6-svscan", "/app/gogs/docker/s6/"]