Repository where nkls researches and experiments with building mixnet stuff using libtorrent
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

40 lines
995 B

FROM dockerreg.pep.security/nkls/pepdocker/peppythonadapter:latest
#FROM debian:buster-slim
RUN apt update -y && apt upgrade -y
RUN apt install -y git wget build-essential nano bison python3 linux-perf nmap iputils-ping
RUN mkdir /code
WORKDIR /code
ENV PREFIX=/usr/local
RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.gz
RUN tar -xf boost_1_76_0.tar.gz
WORKDIR /code/boost_1_76_0/tools/build
RUN ./bootstrap.sh
RUN ./b2 install --prefix=$PREFIX
WORKDIR /code/boost_1_76_0
RUN ./bootstrap.sh
RUN ./b2 --prefix=$PREFIX
RUN ./b2 install --prefix=$PREFIX
RUN ./b2 install headers --prefix=$PREFIX
WORKDIR /code
RUN git clone --recurse-submodules https://github.com/arvidn/libtorrent
WORKDIR /code/libtorrent
RUN b2
RUN b2 install
WORKDIR /code/libtorrent/examples
RUN b2
WORKDIR /
RUN mkdir binaries
RUN cp /code/libtorrent/examples/bin/gcc-8/debug/address-model-64/cxxstd-14-iso/link-static/threading-multi/* /binaries
ENTRYPOINT /bin/bash