-
Notifications
You must be signed in to change notification settings - Fork 41
/
Dockerfile
50 lines (41 loc) · 1.06 KB
/
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
41
42
43
44
45
46
47
48
49
FROM tensorflow/tensorflow:1.5.0-rc0-devel
RUN pip install -U pip
RUN apt-get update && \
apt-get install -y \
build-essential \
cmake \
git \
libgtk2.0-dev \
pkg-config \
libavcodec-dev \
libavformat-dev \
libswscale-dev \
python-dev \
python-numpy \
python-skimage \
python-tk \
libtbb2 \
libtbb-dev \
libjpeg-dev \
libpng-dev \
libtiff-dev \
libjasper-dev \
libdc1394-22-dev \
qt5-default \
wget \
vim
RUN git clone https://github.com/opencv/opencv.git /root/opencv && \
cd /root/opencv && \
git checkout 2.4 && \
mkdir build && \
cd build && \
cmake -DWITH_QT=ON -DWITH_OPENGL=ON -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON -DWITH_XINE=ON -DBUILD_EXAMPLES=ON .. && \
make -j"$(nproc)" && \
make install && \
ldconfig && \
echo 'ln /dev/null /dev/raw1394' >> ~/.bashrc
RUN ln /dev/null /dev/raw1394
RUN cd /root && git clone https://github.com/hiveml/tensorflow-grad-cam
WORKDIR /root/tensorflow-grad-cam
RUN cd imagenet && ./get_checkpoint.sh
CMD /bin/bash