forked from conan-io/conan-docker-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
96 lines (93 loc) · 3.34 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
FROM ubuntu:xenial
LABEL maintainer="Luis Martinez de Bartolome <luism@jfrog.com>"
RUN dpkg --add-architecture i386 \
&& apt-get -qq update \
&& apt-get -qq install -y --no-install-recommends \
python-dev=2.7.* \
sudo=1.8.* \
build-essential=12.* \
wget=1.17.* \
git=1:2.7.* \
vim=2:7.4.* \
libc6-dev-i386=2.23-* \
g++-multilib=4:5.3.* \
libgmp-dev=2:6.1.* \
libmpfr-dev=3.1.* \
libmpc-dev=1.0.* \
libc6-dev=2.23-* \
nasm=2.11.* \
dh-autoreconf=11 \
valgrind=1:3.11.* \
&& apt-get -qq install -y --allow-downgrades --no-install-recommends \
gcc-5=5.3.1-14ubuntu2 \
gcc-5-base=5.3.1-14ubuntu2 \
cpp-5=5.3.1-14ubuntu2 \
libcc1-0=5.3.1-14ubuntu2 \
libgcc-5-dev=5.3.1-14ubuntu2 \
libstdc++6=5.3.1-14ubuntu2 \
libgomp1=5.3.1-14ubuntu2 \
libitm1=5.3.1-14ubuntu2 \
libatomic1=5.3.1-14ubuntu2 \
libasan2=5.3.1-14ubuntu2 \
liblsan0=5.3.1-14ubuntu2 \
libtsan0=5.3.1-14ubuntu2 \
libubsan0=5.3.1-14ubuntu2 \
libcilkrts5=5.3.1-14ubuntu2 \
libmpx0=5.3.1-14ubuntu2 \
libquadmath0=5.3.1-14ubuntu2 \
gcc-5-multilib=5.3.1-14ubuntu2 \
lib32gcc-5-dev=5.3.1-14ubuntu2 \
libx32gcc-5-dev=5.3.1-14ubuntu2 \
lib32gomp1=5.3.1-14ubuntu2 \
libx32gomp1=5.3.1-14ubuntu2 \
lib32itm1=5.3.1-14ubuntu2 \
libx32itm1=5.3.1-14ubuntu2 \
lib32atomic1=5.3.1-14ubuntu2 \
libx32atomic1=5.3.1-14ubuntu2 \
lib32asan2=5.3.1-14ubuntu2 \
libx32asan2=5.3.1-14ubuntu2 \
lib32ubsan0=5.3.1-14ubuntu2 \
libx32ubsan0=5.3.1-14ubuntu2 \
lib32cilkrts5=5.3.1-14ubuntu2 \
libx32cilkrts5=5.3.1-14ubuntu2 \
lib32mpx0=5.3.1-14ubuntu2 \
lib32quadmath0=5.3.1-14ubuntu2 \
libx32quadmath0=5.3.1-14ubuntu2 \
lib32stdc++6=5.3.1-14ubuntu2 \
libx32stdc++6=5.3.1-14ubuntu2 \
linux-libc-dev:i386 \
libstdc++-5-dev=5.3.1-14ubuntu2 \
&& apt-get -qq install -y --allow-downgrades --no-install-recommends \
g++-5=5.3.1-14ubuntu2 \
libstdc++-5-dev=5.3.1-14ubuntu2 \
g++-5-multilib=5.3.1-14ubuntu2 \
lib32stdc++-5-dev=5.3.1-14ubuntu2 \
libx32stdc++-5-dev=5.3.1-14ubuntu2 \
ninja-build=1.5.* \
libffi-dev=3.2.* \
libssl-dev=1.0.2* \
pkg-config=0.29.1-0ubuntu1 \
ca-certificates \
&& ln -s /usr/bin/g++-5 /usr/bin/g++ \
&& rm -rf /var/lib/apt/lists/* \
&& wget -q --no-check-certificate https://cmake.org/files/v3.11/cmake-3.11.2-Linux-x86_64.tar.gz \
&& tar -xzf cmake-3.11.2-Linux-x86_64.tar.gz \
&& cp -fR cmake-3.11.2-Linux-x86_64/* /usr \
&& rm -rf cmake-3.11.2-Linux-x86_64 \
&& rm cmake-3.11.2-Linux-x86_64.tar.gz \
&& wget -q --no-check-certificate https://bootstrap.pypa.io/get-pip.py \
&& python get-pip.py \
&& rm get-pip.py \
&& pip install -q -U pip \
&& pip install -q --no-cache-dir conan --upgrade \
&& groupadd 1001 -g 1001 \
&& groupadd 1000 -g 1000 \
&& groupadd 2000 -g 2000 \
&& groupadd 999 -g 999 \
&& useradd -ms /bin/bash conan -g 1001 -G 1000,2000,999 \
&& printf "conan:conan" | chpasswd \
&& adduser conan sudo \
&& printf "conan ALL= NOPASSWD: ALL\\n" >> /etc/sudoers
USER conan
WORKDIR /home/conan
RUN mkdir -p /home/conan/.conan