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.
 
 

29 lines
794 B

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