Dockerfile.rpi 921 B

12345678910111213141516171819202122232425262728293031323334353637
  1. FROM resin/rpi-raspbian:stretch
  2. ENV DEBIAN_FRONTEND noninteractive
  3. ENV INITSYSTEM on
  4. RUN apt-get update && \
  5. apt-get install -y --no-install-recommends \
  6. gcc g++ libc6-dev make golang \
  7. git git-annex openssh-server \
  8. python-pip python-setuptools \
  9. socat tzdata patch \
  10. && rm -rf /var/lib/apt/lists/*
  11. RUN pip install supervisor pyyaml
  12. ENV GOGS_CUSTOM /data/gogs
  13. # Configure LibC Name Service
  14. COPY docker/nsswitch.conf /etc/nsswitch.conf
  15. COPY docker /app/gogs/docker
  16. COPY templates /app/gogs/templates
  17. COPY public /app/gogs/public
  18. WORKDIR /app/gogs/build
  19. COPY . .
  20. RUN ./docker/build-go.sh
  21. RUN ./docker/build.sh
  22. RUN ./docker/finalize.sh
  23. COPY docker/nsswitch.conf /etc/nsswitch.conf
  24. VOLUME ["/data"]
  25. EXPOSE 22 3000
  26. ENTRYPOINT ["/app/gogs/docker/start.sh"]