|
a |
|
b/Dockerfile |
|
|
1 |
FROM nvidia/cuda:10.0-cudnn7-devel-ubuntu18.04 |
|
|
2 |
|
|
|
3 |
RUN apt-get update && apt-get install -y --no-install-recommends \ |
|
|
4 |
ca-certificates \ |
|
|
5 |
curl \ |
|
|
6 |
netbase \ |
|
|
7 |
wget \ |
|
|
8 |
git \ |
|
|
9 |
openssh-client \ |
|
|
10 |
ssh \ |
|
|
11 |
vim \ |
|
|
12 |
&& rm -rf /var/lib/apt/lists/* |
|
|
13 |
|
|
|
14 |
# http://bugs.python.org/issue19846 |
|
|
15 |
ENV LANG C.UTF-8 |
|
|
16 |
# https://github.com/docker-library/python/issues/147 |
|
|
17 |
ENV PYTHONIOENCODING UTF-8 |
|
|
18 |
|
|
|
19 |
RUN apt-get update && apt-get install -y --no-install-recommends \ |
|
|
20 |
python3.6 \ |
|
|
21 |
python3.6-dev \ |
|
|
22 |
python3-pip \ |
|
|
23 |
python3-setuptools \ |
|
|
24 |
&& rm -rf /var/lib/apt/lists/* |
|
|
25 |
|
|
|
26 |
RUN pip3 install --upgrade pip |
|
|
27 |
|
|
|
28 |
RUN pip3 install https://download.pytorch.org/whl/cu100/torch-1.1.0-cp36-cp36m-linux_x86_64.whl \ |
|
|
29 |
&& pip3 install https://download.pytorch.org/whl/cu100/torchvision-0.3.0-cp36-cp36m-linux_x86_64.whl |
|
|
30 |
|
|
|
31 |
WORKDIR /workspace |
|
|
32 |
|
|
|
33 |
COPY requirements.txt ./ |
|
|
34 |
|
|
|
35 |
RUN pip3 install --no-cache-dir -r requirements.txt |