-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-tf-1.8-cpu
56 lines (50 loc) · 1.2 KB
/
Dockerfile-tf-1.8-cpu
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
# Dockerfile with tensorflow gpu support. Install CV related packages.
FROM tensorflow/tensorflow:1.8.0
MAINTAINER Yan Sun <[email protected]>
# The code below is all based off the repos made by https://github.com/janza/
# He makes great dockerfiles for opencv, I just used a different base as I need
# tensorflow on a gpu.
RUN apt-get update
# Core linux dependencies.
RUN apt-get install -y \
build-essential \
cmake \
git \
wget \
unzip \
yasm \
pkg-config \
libswscale-dev \
libtbb2 \
libtbb-dev \
libjpeg-dev \
libpng-dev \
libtiff-dev \
libjasper-dev \
libavformat-dev \
libhdf5-dev \
libpq-dev \
python-pip \
python-dev \
libsm6 \
libxrender1 \
libxext-dev \
vim \
zip
# Update pip
RUN pip install --upgrade pip
# Python dependencies
RUN pip install \
numpy \
hdf5storage \
h5py \
scipy \
py3nvml \
scikit-learn \
psutil \
Pillow \
matplotlib \
requests \
opencv-python
# Update h5py
RUN pip install h5py --upgrade