Dockerfile.rpi 963 B

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.6/gosu-armhf /usr/sbin/gosu
  5. RUN echo "http://dl-4.alpinelinux.org/alpine/v3.3/main/" | tee /etc/apk/repositories \
  6. && echo "http://dl-4.alpinelinux.org/alpine/v3.3/community/" | tee -a /etc/apk/repositories \
  7. && echo "@edge http://dl-4.alpinelinux.org/alpine/edge/main" | tee -a /etc/apk/repositories \
  8. && apk -U --no-progress upgrade \
  9. && apk -U --no-progress add ca-certificates bash git linux-pam s6@edge curl openssh socat \
  10. && chmod +x /usr/sbin/gosu
  11. ENV GOGS_CUSTOM /data/gogs
  12. COPY . /app/gogs/
  13. WORKDIR /app/gogs/
  14. RUN ./docker/build.sh
  15. # Configure LibC Name Service
  16. COPY docker/nsswitch.conf /etc/nsswitch.conf
  17. # Configure Docker Container
  18. VOLUME ["/data"]
  19. EXPOSE 22 3000
  20. ENTRYPOINT ["docker/start.sh"]
  21. CMD ["/bin/s6-svscan", "/app/gogs/docker/s6/"]