forked from tbepler/topaz
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
30 lines (24 loc) · 878 Bytes
/
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
FROM nvidia/cuda:10.1-cudnn7-devel-ubuntu16.04
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
git \
wget \
ca-certificates \
&& \
rm -rf /var/lib/apt/lists/*
ENV PYTHON_VERSION=3.6
ENV NAME=topaz-py$PYTHON_VERSION
RUN wget -O ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
chmod +x ~/miniconda.sh && \
~/miniconda.sh -b -p /opt/conda && \
rm ~/miniconda.sh && \
/opt/conda/bin/conda create -y --name $NAME python=$PYTHON_VERSION numpy pandas scikit-learn && \
/opt/conda/bin/conda clean -ya
ENV PATH /opt/conda/bin:$PATH
ENV PATH /opt/conda/envs/$NAME/bin:$PATH
RUN conda install --name $NAME -c pytorch pytorch torchvision
# setup topaz install directory
WORKDIR /opt/topaz
COPY . .
# now install
RUN pip install -v .