Dockerfile 606 B

12345678910111213141516171819202122
  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.7/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
  7. ENV GOGS_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/"]