|
@@ -6,7 +6,7 @@
|
|
|
# The build uses intermediate stages, but produces a single final image.
|
|
# The build uses intermediate stages, but produces a single final image.
|
|
|
|
|
|
|
|
ARG DISTRIB_RELEASE=24.04
|
|
ARG DISTRIB_RELEASE=24.04
|
|
|
-ARG SELKIES_IMAGE=ghcr.io/selkies-project/selkies/py-build:latest
|
|
|
|
|
|
|
+ARG SELKIES_IMAGE=ghcr.io/selkies-project/selkies/py-build:main
|
|
|
|
|
|
|
|
ARG SELKIES_GIT_REF=main
|
|
ARG SELKIES_GIT_REF=main
|
|
|
ARG NVIDIA_VAAPI_DRIVER_VERSION=latest
|
|
ARG NVIDIA_VAAPI_DRIVER_VERSION=latest
|
|
@@ -65,6 +65,8 @@ COPY --from=selkies-build /opt/pypi/dist/selkies-*.whl /tmp/
|
|
|
RUN apt-get update \
|
|
RUN apt-get update \
|
|
|
&& apt-get install --no-install-recommends -y \
|
|
&& apt-get install --no-install-recommends -y \
|
|
|
build-essential \
|
|
build-essential \
|
|
|
|
|
+ libopus0 \
|
|
|
|
|
+ libpulse0 \
|
|
|
libxkbcommon-dev \
|
|
libxkbcommon-dev \
|
|
|
pkg-config \
|
|
pkg-config \
|
|
|
python3 \
|
|
python3 \
|
|
@@ -76,14 +78,19 @@ RUN apt-get update \
|
|
|
--no-cache-dir \
|
|
--no-cache-dir \
|
|
|
--upgrade \
|
|
--upgrade \
|
|
|
pip \
|
|
pip \
|
|
|
|
|
+ && printf '%s\n' \
|
|
|
|
|
+ 'pixelflux<2' \
|
|
|
|
|
+ > /tmp/selkies-constraints.txt \
|
|
|
&& /opt/selkies/bin/python -m pip install \
|
|
&& /opt/selkies/bin/python -m pip install \
|
|
|
--no-cache-dir \
|
|
--no-cache-dir \
|
|
|
--force-reinstall \
|
|
--force-reinstall \
|
|
|
|
|
+ --constraint /tmp/selkies-constraints.txt \
|
|
|
/tmp/selkies-*.whl \
|
|
/tmp/selkies-*.whl \
|
|
|
&& /opt/selkies/bin/python - <<'PY'
|
|
&& /opt/selkies/bin/python - <<'PY'
|
|
|
from pixelflux import CaptureSettings, ScreenCapture, StripeCallback
|
|
from pixelflux import CaptureSettings, ScreenCapture, StripeCallback
|
|
|
import pcmflux
|
|
import pcmflux
|
|
|
-print("Selkies media extensions: OK")
|
|
|
|
|
|
|
+
|
|
|
|
|
+print("Selkies, pixelflux et pcmflux : imports OK")
|
|
|
PY
|
|
PY
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# -----------------------------------------------------------------------------
|