[Bugfix][CPU] Ship examples/ in the CPU release image (#47447)
Signed-off-by: liejiang <jianglie2023@gmail.com>
AgenticSpark committed
Jul 3, 2026 at 04:46 UTC
978de8335305fe99b610109254e7e3037a735948
1 file changed
+6
docker/Dockerfile.cpu
+6
@@ -301,6 +301,12 @@ LABEL ai.vllm.build.cpu-x86="${VLLM_CPU_X86:-false}"
301
LABEL ai.vllm.build.cpu-arm-bf16="${VLLM_CPU_ARM_BF16:-false}"
302
LABEL ai.vllm.build.python-version="${PYTHON_VERSION:-3.12}"
303
304
+# Copy the examples directory (including the chat/tool templates) so it is
305
+# present in the released image, as the CUDA image ships it too. The vllm-test
306
+# stage above adds examples/ for testing only, so without this the published
307
+# vllm-openai-cpu image would not ship examples/*.jinja.
308
+COPY examples examples
309
+
310
ENTRYPOINT ["vllm", "serve"]
311
312