-
Notifications
You must be signed in to change notification settings - Fork 18
/
Dockerfile
57 lines (47 loc) · 1.68 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
FROM ubuntu:16.04
ARG INSTALL_DIR=/opt/intel/openvino
ARG TEMP_DIR=/tmp/openvino_installer
RUN mkdir -p $TEMP_DIR && cd $TEMP_DIR
COPY l_openvino_toolkit*.tgz .
# COMMON BUILD TOOLS
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y -q --no-install-recommends \
build-essential \
autoconf \
automake \
make \
git \
cpio \
pciutils \
wget \
python3-pip \
python3-setuptools \
cmake \
vim \
sudo \
curl \
libboost-all-dev \
lsb-release && \
rm -rf /var/lib/apt/lists/*
#Install OpenVINO R1
RUN tar xf l_openvino_toolkit*.tgz && \
cd l_openvino_toolkit* && \
sed -i 's/decline/accept/g' silent.cfg && \
./install.sh -s silent.cfg && \
rm -rf $TEMP_DIR
RUN chmod +x $INSTALL_DIR/install_dependencies/install_openvino_dependencies.sh && \
cd $INSTALL_DIR/install_dependencies && \
./_install_all_dependencies.sh
#Copy RI and data to the container folder
COPY classroom_analytics/ $INSTALL_DIR/inference_engine/samples/classroom_analytics/
COPY data/ /data/
# build RI and Inference Engine samples
RUN /bin/bash -c "source $INSTALL_DIR/bin/setupvars.sh"
RUN /bin/bash -c "$INSTALL_DIR/inference_engine/samples/build_samples.sh"
#Install Python packages and Download Required models
RUN pip3 install requests && \
pip3 install pyyaml
RUN cd /data && \
python3 $INSTALL_DIR/deployment_tools/tools/model_downloader/downloader.py --list $INSTALL_DIR/inference_engine/samples/classroom_analytics/models.LST && \
cd $INSTALL_DIR/inference_engine/samples/classroom_analytics/ && \
python3 create_list.py /data/students/
RUN echo 'source /opt/intel/openvino/bin/setupvars.sh' >> ~/.bashrc