-
Notifications
You must be signed in to change notification settings - Fork 151
/
Copy pathDockerfile
40 lines (35 loc) · 991 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
30
31
32
33
34
35
36
37
38
39
40
FROM nvcr.io/nvidia/cuda:10.0-cudnn7-devel-ubuntu18.04
LABEL maintainer="Lei Mao"
# Install package dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
autoconf \
automake \
libtool \
pkg-config \
ca-certificates \
wget \
git \
curl \
ca-certificates \
libjpeg-dev \
libpng-dev \
python3 \
python3-dev \
python3-pip \
python3-setuptools \
zlib1g-dev \
swig \
vim \
locales \
locales-all
RUN apt-get clean
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
RUN cd /usr/local/bin && \
ln -s /usr/bin/python3 python && \
ln -s /usr/bin/pip3 pip && \
pip install --upgrade pip setuptools
RUN pip install --no-cache-dir numpy==1.16.5 tensorflow-gpu==1.15.0 contextlib2==0.6.0 tqdm==4.36.1
RUN pip install --no-cache-dir tensorflow-datasets==1.2.0