File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -95,9 +95,9 @@ def _run_stack_build_command_from_build_config(
95
95
# save build.yaml spec for building same distribution again
96
96
if build_config .image_type == ImageType .docker .value :
97
97
# 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
99
99
build_dir = (
100
- llama_stack_path / "configs/distributions" / build_config . image_type
100
+ llama_stack_path / "tmp/ configs/"
101
101
)
102
102
else :
103
103
build_dir = (
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ add_to_docker <<EOF
103
103
104
104
EOF
105
105
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"
107
107
108
108
printf " Dockerfile created successfully in $TEMP_DIR /Dockerfile"
109
109
cat $TEMP_DIR /Dockerfile
116
116
if [ -n " $LLAMA_MODELS_DIR " ]; then
117
117
mounts=" $mounts -v $( readlink -f $LLAMA_MODELS_DIR ) :$models_mount "
118
118
fi
119
+
119
120
set -x
120
121
$DOCKER_BINARY build $DOCKER_OPTS -t $image_name -f " $TEMP_DIR /Dockerfile" " $REPO_DIR " $mounts
121
122
set +x
You can’t perform that action at this time.
0 commit comments