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.

44 lines
692 B

  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. ENV USER git
  29. ENV GITEA_CUSTOM /data/gitea
  30. ENV GODEBUG=netdns=go
  31. VOLUME ["/data"]
  32. ENTRYPOINT ["/usr/bin/entrypoint"]
  33. CMD ["/bin/s6-svscan", "/etc/s6"]
  34. COPY docker /
  35. COPY public /app/gitea/public
  36. COPY templates /app/gitea/templates
  37. COPY gitea /app/gitea/gitea