You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
733 B

  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/"]