Builing meaningfull DS71 docker image

Please provide complete information as applicable to your setup.

DS7.1 image for X86 dGPU

Trying to setup a dev environnement by creating a “Working” container that can run the Python examples

• Hardware Platform (Jetson / GPU)
• DeepStream Version
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

Trying to build a useable image to run and dev Python DS apps.
I’m not successfull

Here is the dockerfile

FROM nvcr.io/nvidia/deepstream:7.1-samples-multiarch AS builder
RUN apt-get update
RUN apt-get install -y git
RUN apt-get install -y python3-pip
RUN pip3 install --force-reinstall numpy==1.26.0

## required for FFMPEG
RUN apt-get install -y --reinstall libflac8 libmp3lame0 libxvidcore4 ffmpeg
WORKDIR /opt/nvidia/deepstream/deepstream/sources
RUN git clone --branch v1.2.0 https://github.com/NVIDIA-AI-IOT/deepstream_python_apps.git

WORKDIR /opt/nvidia/deepstream/deepstream/

# crucial to install Nvidia VDEC
RUN ./install.sh
RUN ./user_additional_install.sh

From the documentation
Once you have DeepStreamSDK pre-requisites and DeepStreamSDK installed on the system, navigate to <DS_ROOT>/sources/ dir which is /opt/nvidia/deepstream/deepstream/sources/ and git clone deepstream_python_apps repo here.

The latest bindings can be installed from release section. You can also build the bindings from source using the instructions in the bindings readme if needed.

I do not understand the Setup part in the document

Thanks in adavance

1.Do not use: 7.1-samples-multiarch as the base image. This image is only used for release and lacks SDK header files, which will cause pyds to fail to compile.

2.Just run the script in the image

FROM deepstream:7.1-triton-multiarch AS builder

WORKDIR /opt/nvidia/deepstream/deepstream/

RUN ./user_additional_install.sh

# auto install pyds
RUN ./user_deepstream_python_apps_install.sh -b -r v1.2.0

# crucial to install Nvidia VDEC
RUN ./install.sh