-
Notifications
You must be signed in to change notification settings - Fork 110
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (34 loc) · 1.6 KB
/
Dockerfile
File metadata and controls
42 lines (34 loc) · 1.6 KB
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
FROM docker.io/intel/dlstreamer:2025.2.0-ubuntu22
USER root
# Pull Debian security fixes (addresses libpng/libpq/linux-libc-dev CVEs when available in node security)
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get install --yes --no-install-recommends gstreamer1.0-plugins-ugly wget \
&& rm -rf /var/lib/apt/lists/*
USER dlstreamer
ENV GST_PLUGIN_PATH=$GST_PLUGIN_PATH/usr/lib/x86_64-linux-gnu/gstreamer-1.0/
RUN pip install opencv-python-headless
# Conditional installation of source code
USER root
ARG INSTALL_SOURCES=no
RUN if [ "$INSTALL_SOURCES" = "yes" ]; then \
apt-get update && \
sed -i 's/^Types: deb$/Types: deb deb-src/' /etc/apt/sources.list.d/ubuntu.sources && \
apt-get update && \
root_dir=$PWD && \
mkdir -p ./apt-sources/IBVS && cd ./apt-sources/IBVS && \
SOURCE_DIR='./apt-sources/copyleft' && \
mkdir -p $SOURCE_DIR && cd $SOURCE_DIR && \
echo -n $null > copyleft_package_list.txt && \
for package in $(dpkg -l | awk '/^ii/ {print $2}'); do \
grep -l 'Copyleft\|GPL\|AGPL\|LGPL\|EPL\|MPL\|CDDL\|GPL-2\|GPL-3.0\|AGPL-3.0\|LGPL-3.0\|EPL-2.0\|MPL-1.1\|MPL-2.0' /usr/share/doc/${package}/copyright; \
exit_status=$?; \
if [ $exit_status -eq 0 ]; then \
echo $package >> copyleft_package_list.txt; \
apt-get source -q --download-only $package; \
fi; \
done; \
echo "Download source for $(ls | wc -l) third-party packages: $(du -sh)"; \
rm -rf /var/lib/apt/lists/*; \
fi
USER dlstreamer