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 #########################