Fork to maintain patches against the official gitea for https://code.ceondo.com https://github.com/go-gitea/gitea

Dockerfile.aarch64 637B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. FROM multiarch/alpine:aarch64-v3.6
  2. EXPOSE 22 3000
  3. RUN apk --no-cache add \
  4. su-exec \
  5. ca-certificates \
  6. sqlite \
  7. bash \
  8. git \
  9. linux-pam \
  10. s6 \
  11. curl \
  12. openssh \
  13. tzdata
  14. RUN addgroup \
  15. -S -g 1000 \
  16. git && \
  17. adduser \
  18. -S -H -D \
  19. -h /data/git \
  20. -s /bin/bash \
  21. -u 1000 \
  22. -G git \
  23. git && \
  24. echo "git:$(dd if=/dev/urandom bs=24 count=1 status=none | base64)" | chpasswd
  25. ENV USER git
  26. ENV GITEA_CUSTOM /data/gitea
  27. COPY docker /
  28. COPY gitea /app/gitea/gitea
  29. ENV GODEBUG=netdns=go
  30. VOLUME ["/data"]
  31. ENTRYPOINT ["/usr/bin/entrypoint"]
  32. CMD ["/bin/s6-svscan", "/etc/s6"]