penta 4 dias atrás
pai
commit
94365a420f
1 arquivos alterados com 9 adições e 2 exclusões
  1. 9 2
      Dockerfile

+ 9 - 2
Dockerfile

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