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

Dockerfile 667B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. FROM alpine:3.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. ENV GODEBUG=netdns=go
  30. VOLUME ["/data"]
  31. ENTRYPOINT ["/usr/bin/entrypoint"]
  32. CMD ["/bin/s6-svscan", "/etc/s6"]
  33. COPY docker /
  34. COPY gitea /app/gitea/gitea