Dockerfile 772 B

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