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.

22 lines
614 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.9/gosu-amd64 /usr/sbin/gosu
  5. RUN chmod +x /usr/sbin/gosu \
  6. && apk --no-cache --no-progress add ca-certificates bash git linux-pam s6 curl openssh socat tzdata
  7. ENV GITEA_CUSTOM /data/gogs
  8. COPY . /app/gogs/
  9. WORKDIR /app/gogs/
  10. RUN ./docker/build.sh
  11. # Configure LibC Name Service
  12. COPY docker/nsswitch.conf /etc/nsswitch.conf
  13. # Configure Docker Container
  14. VOLUME ["/data"]
  15. EXPOSE 22 3000
  16. ENTRYPOINT ["docker/start.sh"]
  17. CMD ["/bin/s6-svscan", "/app/gogs/docker/s6/"]