mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
29 lines
1.5 KiB
Plaintext
29 lines
1.5 KiB
Plaintext
FROM ubuntu:22.04
|
|
LABEL maintainer="Adrien Béraud <adrien.beraud@savoirfairelinux.com>"
|
|
LABEL org.opencontainers.image.source https://github.com/savoirfairelinux/opendht
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
dialog apt-utils \
|
|
&& apt-get clean \
|
|
&& echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
build-essential pkg-config cmake git wget \
|
|
libtool autotools-dev autoconf \
|
|
cython3 python3-dev python3-setuptools python3-build python3-virtualenv \
|
|
libncurses5-dev libreadline-dev nettle-dev libcppunit-dev \
|
|
libgnutls28-dev libuv1-dev libjsoncpp-dev libargon2-dev \
|
|
libssl-dev libfmt-dev libhttp-parser-dev libasio-dev libmsgpack-dev \
|
|
&& apt-get clean && rm -rf /var/lib/apt/lists/* /var/cache/apt/*
|
|
|
|
RUN echo "*** Downloading RESTinio ***" \
|
|
&& mkdir restinio && cd restinio \
|
|
&& wget https://github.com/aberaud/restinio/archive/6fd08b65f6f15899dd0de3c801f6a5462b811c64.tar.gz \
|
|
&& ls -l && tar -xzf 6fd08b65f6f15899dd0de3c801f6a5462b811c64.tar.gz \
|
|
&& cd restinio-6fd08b65f6f15899dd0de3c801f6a5462b811c64/dev \
|
|
&& cmake -DCMAKE_INSTALL_PREFIX=/usr -DRESTINIO_TEST=OFF -DRESTINIO_SAMPLE=OFF \
|
|
-DRESTINIO_INSTALL_SAMPLES=OFF -DRESTINIO_BENCH=OFF -DRESTINIO_INSTALL_BENCHES=OFF \
|
|
-DRESTINIO_FIND_DEPS=ON -DRESTINIO_ALLOW_SOBJECTIZER=Off -DRESTINIO_USE_BOOST_ASIO=none . \
|
|
&& make -j8 && make install \
|
|
&& cd ../../.. && rm -rf restinio
|