mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
29 lines
1.4 KiB
Plaintext
29 lines
1.4 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 llvm llvm-dev clang make cmake pkg-config git wget libncurses5-dev libreadline-dev \
|
|
nettle-dev libgnutls28-dev libuv1-dev libmsgpack-dev libjsoncpp-dev cython3 python3-dev \
|
|
python3-setuptools libcppunit-dev python3-pip \
|
|
autotools-dev autoconf libssl-dev libargon2-dev \
|
|
libfmt-dev libhttp-parser-dev libasio-dev \
|
|
&& apt-get remove -y gcc g++ && apt-get autoremove -y && apt-get clean
|
|
|
|
ENV CC cc
|
|
ENV CXX c++
|
|
|
|
RUN echo "*** Downloading RESTinio ***" \
|
|
&& mkdir restinio && cd restinio \
|
|
&& wget https://github.com/aberaud/restinio/archive/a7a10e419d9089c5b8ee63f5e3098c892f22fae4.tar.gz \
|
|
&& ls -l && tar -xzf a7a10e419d9089c5b8ee63f5e3098c892f22fae4.tar.gz \
|
|
&& cd restinio-a7a10e419d9089c5b8ee63f5e3098c892f22fae4/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*
|