forked from linkfluence/caffe-tensorflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
69 lines (55 loc) · 1.72 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Install Caffe and python2.7
#
# Priscila's First Dockerfile
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive
# install git / python2.7 / pip / OpenCV
RUN apt-get update
RUN apt-get -y upgrade
#RUN apt-get install -y apt-utils
# pyrhon2.7 / pip / opencv
RUN apt-get install -y python2.7
RUN apt-get install -y python2.7-dev
RUN apt-get install -y build-essential
RUN apt-get install -y curl
RUN curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py
RUN python2.7 get-pip.py
RUN apt-get install -y libopencv-dev
RUN apt-get install -y python-opencv
#RUN pip install -r requirements.txt
RUN pip install protobuf==3.4.0
RUN pip install scipy
RUN pip install pillow
RUN pip install ipython
RUN pip install glog
RUN pip install h5py
RUN pip install scikit-image
RUN pip install tensorflow==1.10.0
# Caffe General Dependencies
RUN apt-get install -y libopenblas-dev
RUN apt-get install -y libatlas-base-dev
RUN apt-get install -y libboost-all-dev
RUN apt-get install -y libprotobuf-dev
RUN apt-get install -y libleveldb-dev
RUN apt-get install -y libsnappy-dev
RUN apt-get install -y libopencv-dev
RUN apt-get install -y libhdf5-serial-dev
RUN apt-get install -y protobuf-compiler
RUN apt-get install -y libgflags-dev
RUN apt-get install -y libgoogle-glog-dev
RUN apt-get install -y liblmdb-dev
# utils
RUN apt-get install -y wget
RUN apt-get install -y vim
RUN apt-get install -y git
RUN git clone https://github.com/BVLC/caffe
WORKDIR caffe
COPY /Makefile.config ./
RUN make all
RUN make test
RUN make runtest
RUN make pycaffe
RUN export PYTHONPATH=/root/caffe/python:$PYTHONPATH
RUN echo "PYTHONPATH=/root/caffe/python:$PYTHONPATH" >> /root/.bashrc
WORKDIR /
RUN git clone https://github.com/psaboia/caffe-tensorflow.git