-
Notifications
You must be signed in to change notification settings - Fork 3.8k
/
Dockerfile
79 lines (68 loc) · 2.12 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
FROM microsoft/vsts-agent:ubuntu-14.04
# Install basic command-line utilities
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
locales \
sudo \
unzip \
wget \
zip \
&& rm -rf /var/lib/apt/lists/*
# Setup the locale
ENV LANG en_US.UTF-8
ENV LC_ALL $LANG
RUN locale-gen $LANG \
&& update-locale
# Install essential build tools
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Install clang 7.0
RUN add-apt-repository ppa:ubuntu-toolchain-r/test -y \
&& cd /tmp \
&& wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - \
&& add-apt-repository "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-7 main" -y \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
clang-7 \
libomp-7-dev \
&& rm -rf /var/lib/apt/lists/*
# Install CMake
RUN curl -sL https://cmake.org/files/v3.14/cmake-3.14.1-Linux-x86_64.sh -o cmake.sh \
&& chmod +x cmake.sh \
&& ./cmake.sh --prefix=/usr/local --exclude-subdir \
&& rm cmake.sh
# Install Java
RUN add-apt-repository ppa:openjdk-r/ppa -y \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
openjdk-8-jdk \
&& rm -rf /var/lib/apt/lists/*
ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
# Install SWIG
RUN curl -sL https://downloads.sourceforge.net/project/swig/swig/swig-3.0.12/swig-3.0.12.tar.gz -o swig.tar.gz \
&& tar -xzf swig.tar.gz \
&& cd swig-3.0.12 \
&& ./configure --prefix=/usr/local --without-pcre \
&& make \
&& make install \
&& cd .. \
&& rm swig.tar.gz \
&& rm -rf swig-3.0.12
# Install Miniconda
RUN curl -sL https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -o miniconda.sh \
&& chmod +x miniconda.sh \
&& ./miniconda.sh -b -p /opt/conda \
&& rm miniconda.sh \
&& /opt/conda/bin/conda install python=3 -q -y \
&& /opt/conda/bin/conda install mkl qt -q -y \
&& /opt/conda/bin/conda clean -a -y \
&& chmod -R 777 /opt/conda
ENV CONDA=/opt/conda/
# Clean system
RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /etc/apt/sources.list.d/* \
&& rm -rf /tmp/*