Shad Ansari | 47432b6 | 2021-09-27 22:46:25 +0000 | [diff] [blame] | 1 | #python3 docker_openvino.py build -d cpu -os ubuntu18 --distribution runtime --product_version 2021.4 |
Shad Ansari | d80531f | 2021-09-27 23:15:03 +0000 | [diff] [blame] | 2 | #FROM ubuntu18_runtime:2021.4 |
| 3 | FROM openvino/ubuntu18_runtime |
Shad Ansari | 47432b6 | 2021-09-27 22:46:25 +0000 | [diff] [blame] | 4 | |
| 5 | USER root |
| 6 | |
| 7 | RUN apt-get update && apt-get install -y \ |
| 8 | wget \ |
| 9 | unzip \ |
| 10 | libglib2.0-0 \ |
| 11 | libsm6 \ |
| 12 | libxrender1 \ |
| 13 | libxext6 \ |
| 14 | vim \ |
| 15 | ffmpeg \ |
| 16 | x11-apps |
| 17 | |
| 18 | RUN apt-get install -y libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio |
| 19 | |
Shad Ansari | 3a8a391 | 2021-11-18 00:44:50 +0000 | [diff] [blame] | 20 | # TODO - is this needed? |
| 21 | RUN pip3 install paho-mqtt |
| 22 | |
Shad Ansari | 47432b6 | 2021-09-27 22:46:25 +0000 | [diff] [blame] | 23 | WORKDIR /var/person-detection-app |
| 24 | |
| 25 | COPY . . |
| 26 | |
| 27 | RUN . .venv/bin/activate && \ |
| 28 | pip3 install -r requirements.txt |
| 29 | |
Shad Ansari | d80531f | 2021-09-27 23:15:03 +0000 | [diff] [blame] | 30 | ENTRYPOINT ["./bin/person_detection.sh"] |
Shad Ansari | a271465 | 2021-10-23 00:10:18 +0000 | [diff] [blame] | 31 | CMD ["-pt 0.75"] |