-
Notifications
You must be signed in to change notification settings - Fork 26
/
Dockerfile
59 lines (54 loc) · 1.54 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
FROM nvcr.io/nvidia/cuda:11.0-cudnn8-devel-ubuntu18.04
RUN apt-get update && \
DEBIAN_FRONTEND=DEBIAN_FRONTEND=noninteractive apt-get install -y \
build-essential \
ca-certificates \
cuda-command-line-tools-11-0 \
curl \
git \
locales \
rsync \
software-properties-common \
tree \
unzip \
vim \
wget \
&& \
sed -i "s/# en_US.UTF-8/en_US.UTF-8/" /etc/locale.gen && \
locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV LC_ALL en_US.UTF-8
RUN add-apt-repository ppa:deadsnakes/ppa && \
apt-get update && \
DEBIAN_FRONTEND=DEBIAN_FRONTEND=noninteractive apt-get install -y \
python3.7 \
python3.7-dev \
&& \
rm -rf /var/lib/apt/lists/* && \
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
python3.7 get-pip.py && \
ln -s /usr/bin/python3.7 /usr/local/bin/python3 && \
ln -s /usr/bin/python3.7 /usr/local/bin/python && \
pip install --upgrade pip && \
pip install --upgrade \
numpy \
scipy \
scikit-learn \
matplotlib \
seaborn \
tqdm \
Cython \
jupyter \
tensorflow-gpu \
tensorflow-datasets \
jax jaxlib==0.1.65+cuda110 -f https://storage.googleapis.com/jax-releases/jax_releases.html \
neural-tangents \
flax \
&& \
apt-get clean && \
apt-get autoremove && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY . /data_diet
WORKDIR /data_diet
EXPOSE 2222