mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
28 lines
1.3 KiB
Plaintext
28 lines
1.3 KiB
Plaintext
FROM ubuntu:20.04
|
|
MAINTAINER Adrien Béraud <adrien.beraud@savoirfairelinux.com>
|
|
|
|
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 \
|
|
autotools-dev autoconf \
|
|
cython3 python3-dev python3-setuptools \
|
|
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
|
|
|
|
RUN echo "*** Downloading RESTinio ***" \
|
|
&& mkdir restinio && cd restinio \
|
|
&& wget https://github.com/aberaud/restinio/archive/2c0b6f5e5ba04d7a74e8406a3df1fd433680599d.tar.gz \
|
|
&& ls -l && tar -xzf 2c0b6f5e5ba04d7a74e8406a3df1fd433680599d.tar.gz \
|
|
&& cd restinio-2c0b6f5e5ba04d7a74e8406a3df1fd433680599d/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
|