Dockerfile.rpi 765 B

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