Update Dockerfile

This commit is contained in:
Tim Bacher 2025-01-08 07:49:35 +01:00 committed by GitHub
parent d57a61b50f
commit a321b184f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -142,6 +142,7 @@ RUN apt-get -qq update \
apt-transport-https \
gnupg \
wget \
unzip \
# the key fingerprint can be obtained from https://ftp-master.debian.org/keys.html
&& wget -qO- "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xA4285295FC7B1A81600062A9605C66F00D6C9793" | \
gpg --dearmor > /usr/share/keyrings/debian-archive-bullseye-stable.gpg \
@ -180,6 +181,14 @@ RUN /build_pysqlite3.sh
COPY docker/main/requirements-wheels.txt /requirements-wheels.txt
RUN pip3 wheel --wheel-dir=/wheels -r /requirements-wheels.txt
# Download the python-onvif-zeep package, build the wheel, move it to the /wheels directory, and clean up temporary files
RUN wget https://github.com/FalkTannhaeuser/python-onvif-zeep/archive/zeep.zip \
&& unzip zeep.zip -d . \
&& cd python-onvif-zeep-zeep \
&& python3 setup.py bdist_wheel \
&& mv dist/onvif_zeep-0.2.12-py3-none-any.whl /wheels/ \
&& cd .. \
&& rm -rf python-onvif-zeep-zeep zeep.zip
# Collect deps in a single layer
FROM scratch AS deps-rootfs