Skip to content

Commit ca7602a

Browse files
committed
1 parent 37be3fb commit ca7602a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

llama_stack/cli/stack/build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ def _run_stack_build_command_from_build_config(
9595
# save build.yaml spec for building same distribution again
9696
if build_config.image_type == ImageType.docker.value:
9797
# docker needs build file to be in the llama-stack repo dir to be able to copy over to the image
98-
llama_stack_path = Path(os.path.relpath(__file__)).parent.parent.parent
98+
llama_stack_path = Path(os.path.abspath(__file__)).parent.parent.parent.parent
9999
build_dir = (
100-
llama_stack_path / "configs/distributions" / build_config.image_type
100+
llama_stack_path / "tmp/configs/"
101101
)
102102
else:
103103
build_dir = (

llama_stack/distribution/build_container.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ add_to_docker <<EOF
103103
104104
EOF
105105

106-
add_to_docker "ADD $build_file_path ./llamastack-build.yaml"
106+
add_to_docker "ADD tmp/configs/$(basename "$build_file_path") ./llamastack-build.yaml"
107107

108108
printf "Dockerfile created successfully in $TEMP_DIR/Dockerfile"
109109
cat $TEMP_DIR/Dockerfile
@@ -116,6 +116,7 @@ fi
116116
if [ -n "$LLAMA_MODELS_DIR" ]; then
117117
mounts="$mounts -v $(readlink -f $LLAMA_MODELS_DIR):$models_mount"
118118
fi
119+
119120
set -x
120121
$DOCKER_BINARY build $DOCKER_OPTS -t $image_name -f "$TEMP_DIR/Dockerfile" "$REPO_DIR" $mounts
121122
set +x

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy