-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
77 lines (58 loc) · 2.01 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
70
71
72
73
74
75
76
77
FROM ubuntu:bionic
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update && \
apt-get -y upgrade && \
apt-get -y dist-upgrade
RUN apt-get install -y --no-install-recommends \
apt-utils \
libusb-1.0-0-dev \
udev \
build-essential \
cmake \
sudo \
git \
wget \
python-dev \
python3-pip \
python3-dev \
python-setuptools \
python3-setuptools \
usbutils \
lsb-release \
libglib2.0-0 libsm6 \
libfontconfig1 \
libxrender1 \
libxtst6
# rm -rf /var/lib/apt/lists/*
# RUN apt-get update -qq
RUN apt-get autoremove &&\
apt-get autoclean
RUN apt-get install -y --no-install-recommends ffmpeg python3-pip \
libharfbuzz0b libxcb-shm0 libcairo2 libpangoft2-1.0-0 expect cpio vim
WORKDIR /res
# place the openvino toolkit tgz file in the same directory
COPY l_openvino_toolkit_p_2019.3.376.tgz .
RUN tar -zxf l_openvino_toolkit_p_2019.3.376.tgz
RUN python3 -m pip install --upgrade pip
# replace this file name with the wheel you want which lies in the same directory.
# COPY tensorflow-1.11.0rc1-cp35-cp35m-linux_x86_64.whl .
# RUN python3 -m pip install tensorflow-1.11.0rc1-cp35-cp35m-linux_x86_64.whl
RUN python3 -m pip install tensorflow
WORKDIR l_openvino_toolkit_p_2019.3.376
RUN ./install_openvino_dependencies.sh
COPY expecter.sh ./expecter.sh
RUN chmod +x ./expecter.sh
RUN ./expecter.sh
RUN /bin/bash -c "source /opt/intel/openvino/bin/setupvars.sh"
WORKDIR /opt/intel/openvino/deployment_tools/model_optimizer/install_prerequisites
RUN ./install_prerequisites_tf.sh
RUN ./install_prerequisites_caffe.sh
RUN python3 -m pip install keras image opencv-python
WORKDIR /opt/intel/openvino/install_dependencies
RUN ./install_NEO_OCL_driver.sh
RUN usermod -a -G video root
RUN echo "source /opt/intel/openvino/bin/setupvars.sh" >> /root/.bashrc
WORKDIR /opt/intel/openvino/deployment_tools/demo/
RUN ./demo_squeezenet_download_convert_run.sh
WORKDIR /
ENTRYPOINT ["bash"]