-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (20 loc) · 779 Bytes
/
Dockerfile
File metadata and controls
25 lines (20 loc) · 779 Bytes
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
FROM ubuntu:20.04
RUN apt-get update && \
apt-get install -y vim curl make g++ libtbb-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN curl -sL -o ~/miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-py37_4.12.0-Linux-x86_64.sh && \
bash ~/miniconda.sh -b -p ~/.conda && \
rm ~/miniconda.sh && \
~/.conda/bin/conda init
RUN ~/.conda/bin/conda run -n base \
pip install torch==1.12.0+cpu --extra-index-url https://download.pytorch.org/whl/cpu
COPY requirements.txt /requirements.txt
RUN ~/.conda/bin/conda run -n base \
pip install -r /requirements.txt && \
rm /requirements.txt
ADD extension /extension
RUN cd /extension && \
~/.conda/bin/conda run -n base \
python setup.py install && \
rm -rf /extension