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.
 
 

30 lines
794 B

  1. FROM ubuntu
  2. MAINTAINER Konrad Beckmann <konrad.beckmann@gmail.com>
  3. RUN apt-get update
  4. RUN apt-get upgrade -y
  5. RUN apt-get install -y ca-certificates apt-transport-https curl dpkg-dev pbuilder fakeroot debhelper
  6. RUN useradd -ms /bin/bash docker
  7. RUN mkdir -p /opt/build/gitea/
  8. COPY . /opt/build/gitea
  9. WORKDIR /opt/build/gitea
  10. # Build the backend
  11. RUN /usr/lib/pbuilder/pbuilder-satisfydepends-classic
  12. RUN chown -R docker:docker /opt/build/
  13. USER docker
  14. ENV DEBFULLNAME="Xil Builder"
  15. ENV DEBEMAIL="dockerbuilder@xil.se"
  16. RUN dch --local "+$(date +%Y%m%d.%H%M%S)" "xil-docker-build" && \
  17. dch --distribution "xenial" --force-distribution -r Release && \
  18. dpkg-buildpackage && \
  19. mkdir -p /opt/build/debian_out && \
  20. find /opt/build && \
  21. cp /opt/build/*.* /opt/build/debian_out/