A container image of Gitea for x86_64 architecture based on Alpine Linux and a custom-built package.
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.
 
 

32 lines
1.1 KiB

  1. FROM alpine:3.12.0
  2. ARG BUILD_DATE
  3. LABEL org.opencontainers.image.title="Gitea - Git with a cup of tea"
  4. LABEL org.opencontainers.image.description="A painless self-hosted Git service."
  5. LABEL org.opencontainers.image.version="1.12.4"
  6. LABEL org.opencontainers.image.url="https://gitea.io"
  7. LABEL org.opencontainers.image.authors="Tamás Gérczei <tamas@gerczei.eu>"
  8. LABEL org.opencontainers.image.created="${BUILD_DATE}"
  9. LABEL org.opencontainers.image.source="https://git.gerczei.eu/tgerczei/gitea-alpine"
  10. LABEL org.opencontainers.image.vendor="Gérczei Tamás E.V."
  11. ADD https://www.gerczei.eu/files/tamas@gerczei.eu-5ec0fe1e.rsa.pub /etc/apk/keys/
  12. # using a community package re-built locally via apkbuild with MySQL support
  13. RUN apk add --repository https://www.gerczei.eu/packages/alpine/v3.12 --no-cache \
  14. git-lfs=2.11.0-r0 \
  15. openssh-keygen=8.3_p1-r0 \
  16. bash=5.0.17-r0 \
  17. gitea=1.12.4-r0 && \
  18. mkdir /var/cache/gitea && \
  19. chown gitea:www-data /var/cache/gitea
  20. EXPOSE 22 3000
  21. USER gitea:www-data
  22. ENTRYPOINT ["/usr/bin/gitea"]
  23. CMD ["web", "-c", "/etc/gitea/conf/app.ini"]