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

Dockerfile 700B

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