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
689 B

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