2929#
3030
3131# Base image on the minimum Triton container
32- ARG BASE_IMAGE=nvcr.io/nvidia/tritonserver:25.06 -py3-min
32+ ARG BASE_IMAGE=nvcr.io/nvidia/tritonserver:25.07 -py3-min
3333
3434ARG TRITON_CLIENT_REPO_SUBDIR=clientrepo
3535ARG TRITON_PA_REPO_SUBDIR=perfanalyzerrepo
@@ -60,34 +60,36 @@ ENV PIP_BREAK_SYSTEM_PACKAGES=1 CMAKE_POLICY_VERSION_MINIMUM=3.5
6060
6161RUN apt-get update && \
6262 apt-get install -y --no-install-recommends \
63- ca-certificates \
64- software-properties-common \
6563 autoconf \
6664 automake \
6765 build-essential \
66+ ca-certificates \
6867 curl \
6968 git \
7069 gperf \
7170 libb64-dev \
7271 libgoogle-perftools-dev \
73- libopencv-dev \
7472 libopencv-core-dev \
73+ libopencv-dev \
7574 libssl-dev \
7675 libtool \
76+ maven \
77+ openjdk-11-jdk \
7778 pkg-config \
7879 python3 \
79- python3-pip \
8080 python3-dev \
81- python3-wheel \
81+ python3-pdfkit \
82+ python3-pip \
8283 python3-setuptools \
84+ python3-wheel \
8385 rapidjson-dev \
86+ software-properties-common \
8487 vim \
85- wget \
86- python3-pdfkit \
87- openjdk-11-jdk \
88- maven && \
88+ wget && \
8989 pip3 install --upgrade "grpcio-tools<1.68" cmake==4.0.3
9090
91+ ENV CMAKE_POLICY_MINIMUM_REQUIRED=3.5
92+
9193# Build expects "python" executable (not python3).
9294RUN rm -f /usr/bin/python && \
9395 ln -s /usr/bin/python3 /usr/bin/python
@@ -126,8 +128,7 @@ RUN cmake -DCMAKE_INSTALL_PREFIX=/workspace/install \
126128 -DTRITON_ENABLE_JAVA_HTTP=ON \
127129 -DTRITON_ENABLE_EXAMPLES=ON -DTRITON_ENABLE_TESTS=ON \
128130 -DTRITON_ENABLE_GPU=${TRITON_ENABLE_GPU} /workspace/client
129- RUN make -j16 cc-clients java-clients && \
130- rm -fr ~/.m2
131+ RUN cmake --build . -v --parallel --target cc-clients java-clients
131132
132133# TODO: PA will rebuild the CC clients since it depends on it.
133134# This should be optimized so that we do not have to build
@@ -145,6 +146,7 @@ RUN if [ "$TRITON_PERF_ANALYZER_BUILD" = "1" ]; then \
145146 -DTRITON_COMMON_REPO_TAG=${TRITON_COMMON_REPO_TAG} \
146147 -DTRITON_CORE_REPO_TAG=${TRITON_CORE_REPO_TAG} \
147148 -DTRITON_CLIENT_REPO_TAG=${TRITON_CLIENT_REPO_TAG} \
149+ -DTRITON_THIRD_PARTY_REPO_TAG=${TRITON_THIRD_PARTY_REPO_TAG} \
148150 -DTRITON_ENABLE_PERF_ANALYZER_C_API=ON \
149151 -DTRITON_ENABLE_PERF_ANALYZER_TFS=ON \
150152 -DTRITON_ENABLE_PERF_ANALYZER_TS=ON \
@@ -156,7 +158,7 @@ RUN if [ "$TRITON_PERF_ANALYZER_BUILD" = "1" ]; then \
156158 -DTRITON_PACKAGE_PERF_ANALYZER=ON \
157159 -DTRITON_ENABLE_GPU=${TRITON_ENABLE_GPU} \
158160 /workspace/perf_analyzer && \
159- make -j16 perf-analyzer python-clients && \
161+ cmake --build . -v --parallel --target perf-analyzer python-clients && \
160162 pip3 install build && \
161163 cd /workspace/perf_analyzer/genai-perf && \
162164 python3 -m build --wheel --outdir /workspace/install/python; \
@@ -169,12 +171,13 @@ RUN if [ "$TRITON_PERF_ANALYZER_BUILD" = "1" ]; then \
169171 -DTRITON_REPO_ORGANIZATION=${TRITON_REPO_ORGANIZATION} \
170172 -DTRITON_COMMON_REPO_TAG=${TRITON_COMMON_REPO_TAG} \
171173 -DTRITON_CLIENT_REPO_TAG=${TRITON_CLIENT_REPO_TAG} \
174+ -DTRITON_THIRD_PARTY_REPO_TAG=${TRITON_THIRD_PARTY_REPO_TAG} \
172175 -DTRITON_ENABLE_PYTHON_HTTP=ON \
173176 -DTRITON_ENABLE_PYTHON_GRPC=ON \
174177 -DTRITON_PACKAGE_PERF_ANALYZER=ON \
175178 -DTRITON_ENABLE_GPU=${TRITON_ENABLE_GPU} \
176179 /workspace/perf_analyzer && \
177- make -j16 python-clients && \
180+ cmake --build . -v --parallel --target python-clients && \
178181 mkdir -p /workspace/install/python && \
179182 cp /workspace/perf_analyzer/genai_perf-*.whl /workspace/install/python/; \
180183 fi
@@ -205,26 +208,27 @@ ARG TRITON_ENABLE_GPU
205208
206209RUN apt-get update && \
207210 apt-get install -y --no-install-recommends \
208- software-properties-common \
209211 curl \
212+ default-jdk \
210213 git \
211214 gperf \
212215 libb64-dev \
213216 libgoogle-perftools-dev \
214- libopencv-dev \
215217 libopencv-core-dev \
218+ libopencv-dev \
216219 libssl-dev \
217220 libtool \
221+ maven \
222+ perl \
218223 python3 \
219- python3-pip \
220224 python3-dev \
221- python3-wheel \
225+ python3-pdfkit \
226+ python3-pip \
222227 python3-setuptools \
228+ python3-wheel \
229+ software-properties-common \
223230 vim \
224- wget \
225- python3-pdfkit \
226- maven \
227- default-jdk && \
231+ wget && \
228232 pip3 install "grpcio<1.68" "grpcio-tools<1.68"
229233
230234WORKDIR /workspace
@@ -265,7 +269,10 @@ RUN if [ "$TRITON_ENABLE_GPU" = "ON" ]; then \
265269 curl -o /tmp/cuda-keyring.deb \
266270 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/$arch/cuda-keyring_1.1-1_all.deb \
267271 && apt install /tmp/cuda-keyring.deb && rm /tmp/cuda-keyring.deb && \
268- apt update && apt install --yes datacenter-gpu-manager-4-dev=1:${DCGM_VERSION}; \
272+ apt update && \
273+ apt install --yes --no-install-recommends \
274+ datacenter-gpu-manager-4-core=1:${DCGM_VERSION} \
275+ datacenter-gpu-manager-4-dev=1:${DCGM_VERSION}; \
269276 fi
270277
271278# Build expects "python" executable (not python3).
0 commit comments