mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
fix(docker): drop startup /app re-chown to keep cold starts fast
This commit is contained in:
1 parent
4f0da40169
commit
dde09ac85b
5 files changed
+29
-57
No files matched your search
@@ -97,9 +97,4 @@ warn_if_workspace_owner_differs /workspace "$OCM_TARGET_UID" "$OCM_TARGET_GID"
|
||||
mkdir -p /app/data /workspace /home/node/.cache /home/node/.opencode
|
||||
chown -R node:node /app/data /workspace /home/node
|
||||
|
||||
if [ "$OCM_UID_CHANGED" = "1" ] || [ "$OCM_GID_CHANGED" = "1" ]; then
|
||||
echo "Realigning /app ownership after id change"
|
||||
chown -R node:node /app
|
||||
fi
|
||||
|
||||
exec runuser -u node -- "$@"
|
||||
Reference in new issue
Block a user