Dockerfile (789B)
1 FROM docker.io/debian:bullseye 2 3 RUN apt-get update -y 4 RUN apt-get upgrade -y 5 6 # Install essential build dependencies 7 RUN apt-get -y install build-essential devscripts debhelper equivs sudo 8 9 # Allow everyone to sudo 10 RUN echo 'ALL ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers 11 12 RUN useradd -m builduser 13 14 USER builduser 15 16 WORKDIR /home/builduser 17 18 # Clone our repos 19 RUN git clone --depth=1 git://git.gnunet.org/gnunet.git 20 RUN git clone --depth=1 git://git.taler.net/exchange.git 21 RUN git clone --depth=1 git://git.taler.net/merchant.git 22 23 # 24 ## Build GNUnet 25 # 26 27 # Install build dependencies 28 RUN cd ~/gnunet && sudo mk-build-deps -t "apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends -y" --install debian/control 29 30 RUN cd ~/gnunet && ./bootstrap 31 RUN cd ~/gnunet && debuild --no-sign -i -B 32