diff --git a/llama_stack/distribution/build_container.sh b/llama_stack/distribution/build_container.sh index 7c406d3e7..50d8e4925 100755 --- a/llama_stack/distribution/build_container.sh +++ b/llama_stack/distribution/build_container.sh @@ -18,10 +18,6 @@ UV_HTTP_TIMEOUT=${UV_HTTP_TIMEOUT:-500} # mounting is not supported by docker buildx, so we use COPY instead USE_COPY_NOT_MOUNT=${USE_COPY_NOT_MOUNT:-} - -# Mount command for cache container .cache, can be overridden by the user if needed -MOUNT_CACHE=${MOUNT_CACHE:-"--mount=type=cache,id=llama-stack-cache,target=/root/.cache"} - # Path to the run.yaml file in the container RUN_CONFIG_PATH=/app/run.yaml @@ -176,18 +172,13 @@ RUN pip install uv EOF fi -# Set the link mode to copy so that uv doesn't attempt to symlink to the cache directory -add_to_container << EOF -ENV UV_LINK_MODE=copy -EOF - # Add pip dependencies first since llama-stack is what will change most often # so we can reuse layers. if [ -n "$normal_deps" ]; then read -ra pip_args <<< "$normal_deps" quoted_deps=$(printf " %q" "${pip_args[@]}") add_to_container << EOF -RUN $MOUNT_CACHE uv pip install $quoted_deps +RUN uv pip install --no-cache $quoted_deps EOF fi @@ -197,7 +188,7 @@ if [ -n "$optional_deps" ]; then read -ra pip_args <<< "$part" quoted_deps=$(printf " %q" "${pip_args[@]}") add_to_container <