blob: e8030165b88a27d01f2b46f910de95b5e804c706 [file] [log] [blame]
Louis Maillard31d31f82024-07-26 10:09:38 -04001FROM debian:11
2
3WORKDIR /build
4
5ENV EMAIL="contact@savoirfairelinux.com"
6ENV DEBFULLNAME="Savoir-faire Linux"
7
8RUN apt-get update && \
9 echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections && \
10 apt-get install -y \
11 dialog apt-utils make devscripts build-essential debmake lintian \
12 && apt-get clean && \
13 mkdir -p /build/debs
14
15RUN apt-get update && apt-get install -y \
16 build-essential pkg-config cmake dpkg-dev gcc g++ git wget \
17 libtool autotools-dev autoconf automake sbuild autopkgtest debhelper debhelper-compat \
18 cython3 python3-dev python3-setuptools python3-build python3-virtualenv \
19 libncurses5-dev libreadline-dev nettle-dev libcppunit-dev \
20 libgnutls28-dev libuv1-dev libjsoncpp-dev libargon2-dev libunistring-dev \
21 libssl-dev libfmt-dev libasio-dev libmsgpack-dev libyaml-cpp-dev \
22 systemd \
23 && apt-get clean && rm -rf /var/lib/apt/lists/* /var/cache/apt/*
24
25ARG PKG_NAME
26COPY deb-${PKG_NAME}.tar.gz /build/${PKG_NAME}.tar.gz
27
28CMD tar -xzf ${PKG_NAME}.tar.gz && \
29 cd ${PKG_NAME} && \
30 debmake -b "dhtnet:bin" -y && \
31 debuild && \
32 cd .. && \
33 rm -Rf ${PKG_NAME} ${PKG_NAME}.tar.gz && \
34 cp /build/*.deb /build/debs/