Skip to content

Commit 978de83

Browse files
authored
[Bugfix][CPU] Ship examples/ in the CPU release image (#47447)
Signed-off-by: liejiang <jianglie2023@gmail.com>
1 parent a14f57a commit 978de83

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

docker/Dockerfile.cpu

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,12 @@ LABEL ai.vllm.build.cpu-x86="${VLLM_CPU_X86:-false}"
301301
LABEL ai.vllm.build.cpu-arm-bf16="${VLLM_CPU_ARM_BF16:-false}"
302302
LABEL ai.vllm.build.python-version="${PYTHON_VERSION:-3.12}"
303303

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+
304310
ENTRYPOINT ["vllm", "serve"]
305311

306312

0 commit comments

Comments
 (0)