fix(docker): ensure the container has write permission to the runtime directory

This commit is contained in:
Eugene Brodsky 2024-03-20 13:26:49 -04:00
parent a6283b9fb6
commit b00e27b022

View File

@ -33,7 +33,8 @@ if [[ -v "PUBLIC_KEY" ]] && [[ ! -d "${HOME}/.ssh" ]]; then
service ssh start
fi
mkdir -p "${INVOKEAI_ROOT}"
chown --recursive ${USER} "${INVOKEAI_ROOT}"
cd "${INVOKEAI_ROOT}"
# Run the CMD as the Container User (not root).