The gogs fork for notabug.org

Dockerfile.rpi 913B

1234567891011121314151617181920212223242526
  1. FROM hypriot/rpi-alpine-scratch:v3.2
  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.9/gosu-armhf /usr/sbin/gosu
  5. RUN chmod +x /usr/sbin/gosu \
  6. && echo "http://dl-4.alpinelinux.org/alpine/v3.3/main/" | tee /etc/apk/repositories \
  7. && echo "http://dl-4.alpinelinux.org/alpine/v3.3/community/" | tee -a /etc/apk/repositories \
  8. && apk -U --no-progress upgrade && rm -f /var/cache/apk/APKINDEX.* \
  9. && apk --no-cache --no-progress add ca-certificates bash git linux-pam s6 curl openssh socat tzdata
  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/"]