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.

40 lines
618 B

  1. FROM aarch64/alpine:3.5
  2. EXPOSE 22 3000
  3. RUN apk -U --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:$(date +%s | sha256sum | base64 | head -c 32)" | 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"]