-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
90 lines (77 loc) · 2.16 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
FROM nvidia/cuda:9.0-cudnn7-runtime
MAINTAINER CodaLab Team "[email protected]"
# Begin common steps (Must be the same in the CPU and GPU images)
RUN apt-get update && apt-get install -y \
apt-transport-https \
iputils-ping \
git \
python2.7 \
python-pip \
python-dev \
python-software-properties \
python-tk \
software-properties-common \
build-essential \
cmake \
libhdf5-dev \
swig \
wget \
curl
## Python 3.6
RUN add-apt-repository ppa:deadsnakes/ppa && \
apt-get update -y && \
apt-get install python3.7 -y \
python3.7-venv \
python3.7-dev \
python3-software-properties
RUN curl https://bootstrap.pypa.io/get-pip.py | python3.7
### Without this Python thinks we're ASCII and unicode chars fail
ENV LANG C.UTF-8
## Oracle JDK 8
RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
add-apt-repository -y ppa:webupd8team/java && \
apt-get update && \
apt-get install -y oracle-java8-installer && \
rm -rf /var/cache/oracle-jdk8-installer
ENV JAVA_HOME /usr/lib/jvm/java-8-oracle
ENV SCALA_VERSION 2.12.6
## Scala
RUN wget http://scala-lang.org/files/archive/scala-$SCALA_VERSION.deb && \
dpkg -i scala-$SCALA_VERSION.deb && \
echo "deb https://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list && \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823 && \
apt-get -y update && \
apt-get -y install sbt && \
apt-get clean && \
apt-get autoremove && \
rm -rf /var/lib/apt/lists/*
ENV SCALA_HOME /usr/share/java
RUN pip2 install -U pip
RUN pip2 install -U \
numpy \
scipy \
matplotlib \
pandas
## Set up python3.7 environment
RUN pip3 install -U pip
RUN pip3 install -U \
numpy \
scipy \
matplotlib \
pandas \
sympy \
nose \
tqdm \
wheel \
scikit-learn \
scikit-image \
crayons \
pendulum \
six \
toml \
yapf
# End common steps
# GPU-specific commands
RUN pip3 install -U \
torch \
torchvision