nvidia
This commit is contained in:
parent
bab79cf1c1
commit
02e2451a90
31
Dockerfile
Normal file
31
Dockerfile
Normal file
@ -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"]
|
||||||
Loading…
x
Reference in New Issue
Block a user