From 02e2451a90ee3b3220edabf7a875cedf9b095113 Mon Sep 17 00:00:00 2001 From: Artur Date: Fri, 27 Jun 2025 17:44:34 +0300 Subject: [PATCH] nvidia --- Dockerfile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..997ba29 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,31 @@ +FROM nvcr.io/nvidia/deepstream:7.1-samples-multiarch + +# Install OpenGL and X11 dependencies for glimagesink +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + nvidia-cuda-toolkit \ + libglvnd0 \ + libgl1 \ + libglx0 \ + libgles2 \ + libegl1 \ + libxcb1 \ + libx11-xcb1 \ + libxkbcommon-x11-0 \ + gstreamer1.0-plugins-bad \ + mesa-utils && \ + rm -rf /var/lib/apt/lists/* + +# Set environment variables for OpenGL +ENV NVIDIA_DRIVER_CAPABILITIES $NVIDIA_DRIVER_CAPABILITIES,video +ENV DISPLAY :0 + +# Copy your pipeline script +COPY nv4l2gst.sh /app/ +RUN chmod +x /app/nv4l2gst.sh + +# Set working directory +WORKDIR /app + +# Default command to run your pipeline +CMD ["./nv4l2gst.sh"]