forked from projectceladon/sample-driver-monitoring-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (32 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
41
42
43
FROM ubuntu:16.04
ADD . /app
WORKDIR /app
ARG INSTALL_DIR=/opt/intel/computer_vision_sdk
RUN apt-get update && apt-get -y upgrade && apt-get autoremove
#Pick up some TF dependencies
RUN apt-get install -y --no-install-recommends \
build-essential \
apt-utils \
cpio \
curl \
git \
lsb-release \
pciutils \
python3.5 \
python3-pip \
cmake \
sudo
RUN pip3 install --upgrade pip setuptools wheel
# installing OpenVINO dependencies
RUN cd /app/l_openvino_toolkit* && \
./install_cv_sdk_dependencies.sh
## installing OpenVINO itself
RUN cd /app/l_openvino_toolkit* && \
sed -i 's/decline/accept/g' silent.cfg && \
./install.sh --silent silent.cfg
RUN cd $INSTALL_DIR/deployment_tools/model_optimizer/install_prerequisites/ && \
./install_prerequisites_tf.sh
RUN /bin/bash -c "source $INSTALL_DIR/bin/setupvars.sh"
RUN cd /app && \
rm -rf l_openvino_toolkit*
CMD ["/bin/bash"]