From 1c3633acafd6bbde1f3636cee9799e3ab0879d13 Mon Sep 17 00:00:00 2001 From: "Li, Jiang" Date: Thu, 13 Aug 2026 17:17:00 +0800 Subject: [PATCH] [CI/Build][CPU] Shrink triton-cpu-build layer by dropping build artifacts (#52127) Signed-off-by: jiang1.li --- docker/Dockerfile.cpu | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/Dockerfile.cpu b/docker/Dockerfile.cpu index 0ee7e06264..69abab3b77 100644 --- a/docker/Dockerfile.cpu +++ b/docker/Dockerfile.cpu @@ -259,6 +259,7 @@ RUN mkdir dist RUN --mount=type=cache,target=/root/.cache/uv \ --mount=type=cache,target=/root/.cache/ccache \ --mount=type=cache,target=/vllm-workspace/.deps,sharing=locked \ + --mount=type=cache,target=/root/.triton \ --mount=type=secret,id=aws-credentials,target=/root/.aws/credentials,required=false \ if [ "$TARGETARCH" = "amd64" ] || [ "$VLLM_CPU_X86" != "0" ]; then \ git clone --recurse-submodules --shallow-submodules --filter=blob:none "https://github.com/triton-lang/triton-cpu.git"; \ @@ -271,6 +272,8 @@ RUN --mount=type=cache,target=/root/.cache/uv \ fi; \ uv build --wheel --out-dir=../dist; \ if [ "$USE_SCCACHE" = "1" ]; then sccache --show-stats; fi; \ + cd ..; \ + rm -rf triton-cpu; \ fi ######################### TEST DEPS #########################