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.

39 lines
664 B

  1. FROM alpine:3.5
  2. MAINTAINER Thomas Boerger <thomas@webhippie.de>
  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. tzdata
  15. RUN addgroup \
  16. -S -g 1000 \
  17. git && \
  18. adduser \
  19. -S -H -D \
  20. -h /data/git \
  21. -s /bin/bash \
  22. -u 1000 \
  23. -G git \
  24. git && \
  25. echo "git:$(dd if=/dev/urandom bs=24 count=1 status=none | base64)" | chpasswd
  26. ENV USER git
  27. ENV GITEA_CUSTOM /data/gitea
  28. ENV GODEBUG=netdns=go
  29. VOLUME ["/data"]
  30. ENTRYPOINT ["/usr/bin/entrypoint"]
  31. CMD ["/bin/s6-svscan", "/etc/s6"]
  32. COPY docker /
  33. COPY gitea /app/gitea/gitea