Dockerfile.rpi 873 B

12345678910111213141516171819202122232425
  1. FROM sander85/rpi-alpine:latest
  2. MAINTAINER jp@roemer.im, raxetul@gmail.com
  3. # Install system utils & Gogs runtime dependencies
  4. ADD https://github.com/tianon/gosu/releases/download/1.6/gosu-armhf /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 LibC Name Service
  15. COPY docker/nsswitch.conf /etc/nsswitch.conf
  16. # Configure Docker Container
  17. VOLUME ["/data"]
  18. EXPOSE 22 3000
  19. ENTRYPOINT ["docker/start.sh"]
  20. CMD ["/bin/s6-svscan", "/app/gogs/docker/s6/"]