You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
662 B

  1. FROM aarch64/alpine:3.5
  2. EXPOSE 22 3000
  3. RUN apk update && \
  4. apk add \
  5. su-exec \
  6. ca-certificates \
  7. sqlite \
  8. bash \
  9. git \
  10. linux-pam \
  11. s6 \
  12. curl \
  13. openssh \
  14. tzdata && \
  15. rm -rf \
  16. /var/cache/apk/* && \
  17. addgroup \
  18. -S -g 1000 \
  19. git && \
  20. adduser \
  21. -S -H -D \
  22. -h /data/git \
  23. -s /bin/bash \
  24. -u 1000 \
  25. -G git \
  26. git && \
  27. echo "git:$(date +%s | sha256sum | base64 | head -c 32)" | chpasswd
  28. ENV USER git
  29. ENV GITEA_CUSTOM /data/gitea
  30. COPY docker /
  31. COPY gitea /app/gitea/gitea
  32. ENV GODEBUG=netdns=go
  33. VOLUME ["/data"]
  34. ENTRYPOINT ["/usr/bin/entrypoint"]
  35. CMD ["/bin/s6-svscan", "/etc/s6"]