Update entrypoint.sh

remove root user
This commit is contained in:
simonmcnair 2025-03-10 11:26:04 +00:00 committed by GitHub
parent cc08ed6a10
commit b52f5c6f4b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,7 +31,8 @@ rsync --info=NAME ${ROOT}/models/karlo/ /data/models/karlo/
declare -A MOUNTS
MOUNTS["/root/.cache"]="/data/.cache"
#MOUNTS["/root/.cache"]="/data/.cache"
MOUNTS["${USER_HOME}/.cache"]="/data/.cache"
MOUNTS["${ROOT}/models"]="/data/models"
MOUNTS["${ROOT}/embeddings"]="/data/embeddings"
@ -58,8 +59,7 @@ done
echo "Installing extension dependencies (if any)"
# because we build our container as root:
chown -R root ~/.cache/
chown -R $PUID:$PGID ~/.cache/
chmod 766 ~/.cache/
shopt -s nullglob