-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
43 lines (42 loc) · 1.71 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM nvidia/cuda:11.0.3-devel-ubuntu20.04
MAINTAINER <hidden>
# Install add-apt-repository
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y software-properties-common \
&& add-apt-repository ppa:deadsnakes/ppa \
&& apt-get -y update \
&& apt-get -y install \
build-essential \
cmake \
git \
wget \
python3.10-dev\
python3.9-dev\
python3.8-dev\
python3.7-dev\
python3.6-dev \
qt5-qmake-bin \
qtwebengine5-dev \
zip \
&& wget https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.gz -O /root/boost_1_76_0.tar.gz -q \
&& cd /root && tar -xf /root/boost_1_76_0.tar.gz; \
cd /root/boost_1_76_0; \
./bootstrap.sh; \
./b2 variant=release link=static threading=multi --with-program_options install; \
./bootstrap.sh --with-python=$(which python3.6) --with-python-version=3.6; \
./b2 --with-python --buildid=3.6 install; \
./bootstrap.sh --with-python=$(which python3.7) --with-python-version=3.7; \
./b2 --with-python --buildid=3.7 install; \
./bootstrap.sh --with-python=$(which python3.8) --with-python-version=3.8; \
./b2 --with-python --buildid=3.8 install; \
./bootstrap.sh --with-python=$(which python3.9) --with-python-version=3.9; \
./b2 --with-python --buildid=3.9 install; \
./bootstrap.sh --with-python=$(which python3.10) --with-python-version=3.10; \
./b2 --with-python --buildid=3.10 install; \
rm -r /root/boost_1_76_0 \
&& apt-get remove wget software-properties-common \
&& apt-get -y autoclean \
&& apt-get -y autoremove \
&& rm /root/boost_1_76_0.tar.gz; \
rm -rf /var/lib/apt/lists/*