fix dir
This commit is contained in:
@@ -18,8 +18,10 @@ environment:
|
||||
LOCALAI_FEDERATED: "true"
|
||||
LOCALAI_MODELS_PATH: "/share/localai/models"
|
||||
map:
|
||||
- share:/share
|
||||
- config:/data
|
||||
- type: share
|
||||
read_only: false
|
||||
- type: addon_config
|
||||
read_only: false
|
||||
privileged:
|
||||
- SYS_ADMIN
|
||||
options:
|
||||
|
||||
@@ -8,4 +8,7 @@ if [ ! -z "$TOKEN" ]; then
|
||||
export LOCALAI_P2P_TOKEN="$TOKEN"
|
||||
fi
|
||||
|
||||
# Créer le répertoire des modèles s'il n'existe pas
|
||||
mkdir -p /share/localai/models
|
||||
|
||||
exec /build/local-ai run --models-path=/share/localai/models --gpu-layers="$GPU_LAYERS"
|
||||
|
||||
Reference in New Issue
Block a user