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
1.2 KiB

  1. FROM registry.sindominio.net/debian as builder
  2. ARG TAGS="bindata"
  3. RUN echo "deb http://deb.debian.org/debian buster-backports main" >> /etc/apt/sources.list && \
  4. apt-get update && \
  5. apt-get install -y --no-install-recommends -t buster-backports \
  6. golang nodejs npm make build-essential jq gnupg curl
  7. COPY gitea-key.asc /key.asc
  8. RUN TGZ=`curl -s https://api.github.com/repos/go-gitea/gitea/releases/latest |jq -r '.assets[].browser_download_url' | grep 'src.*\.tar\.gz$'` && \
  9. curl -L ${TGZ} > /gitea.tar.gz && \
  10. curl -L ${TGZ}.asc > /gitea.tar.gz.asc && \
  11. gpg --import /key.asc && \
  12. gpg --verify /gitea.tar.gz.asc /gitea.tar.gz && \
  13. mkdir /gitea && cd /gitea && \
  14. tar xvzf /gitea.tar.gz
  15. WORKDIR /gitea
  16. RUN make clean-all build
  17. FROM registry.sindominio.net/debian
  18. RUN apt-get update && \
  19. apt-get install -y --no-install-recommends \
  20. curl gettext git ca-certificates
  21. COPY --from=builder /gitea/gitea /app/gitea/gitea
  22. RUN ln -s /app/gitea/gitea /usr/local/bin/gitea && \
  23. ln -s /data /app/gitea/data
  24. VOLUME ["/data"]
  25. ENV GITEA_CUSTOM /data
  26. ENV HOME /data
  27. ENTRYPOINT ["/app/gitea/gitea"]
  28. CMD ["web", "-c", "/data/conf/app.ini"]