Expose Cookbook user-install CLIs in Docker (#887)
Ensure pip --user console scripts like vLLM are visible to Docker runtime and dependency probes by adding the user install bin directory to PATH.
This commit is contained in:
committed by
GitHub
parent
9a1893760d
commit
e58e4a185d
@@ -76,6 +76,10 @@ done
|
||||
# nvcc" even when the GPU itself is fully visible to the container.
|
||||
export VLLM_USE_FLASHINFER_SAMPLER="${VLLM_USE_FLASHINFER_SAMPLER:-0}"
|
||||
|
||||
# Make Cookbook-installed Python CLIs visible after `pip install --user`.
|
||||
# vLLM and helper scripts land here because /app is the non-root user's HOME.
|
||||
export PATH="/app/.local/bin:$PATH"
|
||||
|
||||
# Drop root and run the actual app. `gosu` is preferred over `su` /
|
||||
# `sudo` because it cleans up the process tree (no extra shell layer)
|
||||
# so signals (SIGTERM from `docker stop`) reach uvicorn directly.
|
||||
|
||||
Reference in New Issue
Block a user