mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-11 12:38:02 +00:00
Updating images so that they are able to run without root access
This commit is contained in:
parent
34226d6c93
commit
b323924c18
1 changed files with 9 additions and 0 deletions
|
@ -177,6 +177,15 @@ ENTRYPOINT ["python", "-m", "llama_stack.distribution.server.server"]
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Add other require item commands genearic to all containers
|
||||||
|
add_to_container << EOF
|
||||||
|
|
||||||
|
# Allows running as non-root user
|
||||||
|
RUN mkdir -p /.llama /.cache
|
||||||
|
|
||||||
|
RUN chmod -R g+rw /app /.llama /.cache
|
||||||
|
EOF
|
||||||
|
|
||||||
printf "Containerfile created successfully in $TEMP_DIR/Containerfile\n\n"
|
printf "Containerfile created successfully in $TEMP_DIR/Containerfile\n\n"
|
||||||
cat $TEMP_DIR/Containerfile
|
cat $TEMP_DIR/Containerfile
|
||||||
printf "\n"
|
printf "\n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue