Dockerfile.rpi 859 B

12345678910111213141516171819202122232425262728293031323334
  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 rsync \
  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. WORKDIR /app/gogs/build
  17. COPY . .
  18. RUN ./docker/build-go.sh
  19. RUN ./docker/build.sh
  20. RUN ./docker/finalize.sh
  21. COPY docker/nsswitch.conf /etc/nsswitch.conf
  22. VOLUME ["/data"]
  23. EXPOSE 22 3000
  24. ENTRYPOINT ["/app/gogs/docker/start.sh"]