-
Notifications
You must be signed in to change notification settings - Fork 27
/
Dockerfile
56 lines (46 loc) · 1.43 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
FROM meadml/cuda10.1-cudnn7-devel-ubuntu18.04-python3.6
RUN apt update -y
ENV PATH="/root/miniconda3/bin:${PATH}"
ARG PATH="/root/miniconda3/bin:${PATH}"
RUN apt-get install -y wget
RUN wget \
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& mkdir /root/.conda \
&& bash Miniconda3-latest-Linux-x86_64.sh -b \
&& rm -f Miniconda3-latest-Linux-x86_64.sh
RUN conda init
RUN conda --version
RUN conda update --all
RUN conda create -y -n editline python=3.6
RUN conda install --name editline --yes -c pytorch\
pytorch=1.7.1 \
torchvision \
cudatoolkit=10.2
RUN conda install --name editline --yes -c conda-forge -c fvcore fvcore
RUN conda install --name editline --yes jupyter
RUN conda install --name editline --yes flask
RUN conda install --name editline --yes requests
RUN conda install --name editline --yes pillow
#RUN pip install --upgrade pip && \
RUN /bin/bash -c ". activate editline && \
pip install --upgrade pip && \
pip install \
tensorly \
chumpy \
scikit-image \
matplotlib \
imageio \
black \
isort \
dill \
flake8 \
flake8-bugbear \
flake8-comprehensions"
RUN /bin/bash -c ". activate editline && \
conda install \
opencv \
matplotlib \
scipy"
RUN conda install --name editline -c fvcore -c iopath -c conda-forge fvcore iopath
RUN conda install --name editline pytorch3d -c pytorch3d
RUN /bin/bash -c ". activate editline"