rob-revisited/extensions/webrtc/docker/Dockerfile

11 lines
888 B
Docker

# The WebRTC sidecar in a container, for computers without GStreamer's webrtcbin + libnice (Linux X11 hosts).
# Built by JumPHP\WebRtc\Sidecar (tag jumphp/webrtc-gst:<hash of this folder>), run with --network host (ICE sees the LAN)
# and the X11 socket (screen + input), /dev/dri when present (VA-API encoding).
FROM debian:trixie-slim
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
python3 python3-gi gir1.2-gstreamer-1.0 gir1.2-gst-plugins-base-1.0 gir1.2-gst-plugins-bad-1.0 \
gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly \
gstreamer1.0-nice gstreamer1.0-x libx11-6 libxtst6 mesa-va-drivers ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY bin/webrtc-gst.py /usr/local/bin/webrtc-gst.py
ENTRYPOINT ["python3", "-u", "/usr/local/bin/webrtc-gst.py"]