File tree Expand file tree Collapse file tree
containers/pytorch/inference
cpu/2.7.1/transformers/4.57.3/py311
gpu/2.7.1/transformers/4.57.3/py311 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,6 +31,23 @@ RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.
3131 apt-get clean autoremove --yes && \
3232 rm -rf /var/lib/{apt,dpkg,cache,log}
3333
34+ # NOTE: anthoscli is not required for the intended use of gcloud SDK within this
35+ # context, hence we're safe to remove it, preventing the following CVEs:
36+ # - CVE-2025-68121
37+ # - CVE-2026-27143
38+ # - CVE-2026-33186
39+ # Which are originated due to the bundled Go version in the pre-compiled anthoscli
40+ RUN rm -rf /usr/lib/google-cloud-sdk/bin/anthoscli
41+
42+ # NOTE: nic_sampler is not required for inference workloads, and is removed to
43+ # prevent CVEs originating from the bundled Go version used to compile it
44+ # - CVE-2025-22871
45+ # - CVE-2026-33186
46+ # - CVE-2024-24790
47+ # - CVE-2026-27143
48+ # - CVE-2025-68121
49+ RUN rm -f /opt/nvidia/nsight-compute/2025.1.1/host/target-linux-x64/plugins/efa_metrics/nic_sampler
50+
3451# NOTE: Inference Endpoints API writes the Hugging Face Hub repository in
3552# `/repository` hence it should allow any user to read from it
3653RUN mkdir -p /repository && chmod 755 /repository
Original file line number Diff line number Diff line change @@ -43,6 +43,23 @@ RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.
4343 apt-get clean autoremove --yes && \
4444 rm -rf /var/lib/{apt,dpkg,cache,log}
4545
46+ # NOTE: anthoscli is not required for the intended use of gcloud SDK within this
47+ # context, hence we're safe to remove it, preventing the following CVEs:
48+ # - CVE-2025-68121
49+ # - CVE-2026-27143
50+ # - CVE-2026-33186
51+ # Which are originated due to the bundled Go version in the pre-compiled anthoscli
52+ RUN rm -rf /usr/lib/google-cloud-sdk/bin/anthoscli
53+
54+ # NOTE: nic_sampler is not required for inference workloads, and is removed to
55+ # prevent CVEs originating from the bundled Go version used to compile it
56+ # - CVE-2025-22871
57+ # - CVE-2026-33186
58+ # - CVE-2024-24790
59+ # - CVE-2026-27143
60+ # - CVE-2025-68121
61+ RUN rm -f /opt/nvidia/nsight-compute/2025.1.1/host/target-linux-x64/plugins/efa_metrics/nic_sampler
62+
4663# NOTE: Inference Endpoints API writes the Hugging Face Hub repository in
4764# `/repository` hence it should allow any user to read from it
4865RUN mkdir -p /repository && chmod 755 /repository
You can’t perform that action at this time.
0 commit comments