summaryrefslogtreecommitdiff
path: root/dpkg-build/Dockerfile
blob: f745c0c0ee0f735c07f51afc47e08390410af71b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM docker.io/debian:bullseye

RUN apt-get update -y
RUN apt-get upgrade -y

# Install essential build dependencies
RUN apt-get -y install build-essential devscripts debhelper equivs sudo

# Allow everyone to sudo
RUN echo 'ALL ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers

RUN useradd -m builduser

USER builduser

WORKDIR /home/builduser

# Clone our repos
RUN git clone --depth=1 git://git.gnunet.org/gnunet.git
RUN git clone --depth=1 git://git.taler.net/exchange.git
RUN git clone --depth=1 git://git.taler.net/merchant.git

#
## Build GNUnet
#

# Install build dependencies
RUN cd ~/gnunet && sudo mk-build-deps -t "apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends -y" --install debian/control

RUN cd ~/gnunet && ./bootstrap
RUN cd ~/gnunet && debuild --no-sign -i -B