summaryrefslogtreecommitdiffhomepage
path: root/docker/entrypoint.dev.sh
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-05-21 19:06:15 +0900
committerAdam Malczewski <[email protected]>2026-05-21 19:06:15 +0900
commit55633c90c0d96e62153a4b6655f3f833a3b46ad4 (patch)
treea75f97b48071eb1ba9e8366d8053a376dde69af5 /docker/entrypoint.dev.sh
parentd6b208342edf97bafa5b1dcc986b782f9879d141 (diff)
downloaddispatch-55633c90c0d96e62153a4b6655f3f833a3b46ad4.tar.gz
dispatch-55633c90c0d96e62153a4b6655f3f833a3b46ad4.zip
refactor: gut model/tag/fallback/agent-template system, fix Docker setup
- Remove ModelResolver, model definitions, model tags, fallback order, agent templates - Remove all [[models]], [agents], and fallback from dispatch.toml and config schema - ModelRegistry is now a pure key-state manager - dispatch.toml reduced to keys + permissions only - Docker: fix entrypoint for existing UID, skip bun install in frontend container - Docker: scoped build cache prune in bin/clean
Diffstat (limited to 'docker/entrypoint.dev.sh')
-rw-r--r--docker/entrypoint.dev.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/docker/entrypoint.dev.sh b/docker/entrypoint.dev.sh
index 8378585..bbde09a 100644
--- a/docker/entrypoint.dev.sh
+++ b/docker/entrypoint.dev.sh
@@ -40,8 +40,10 @@ if [ -d /app/node_modules ]; then
chown -R "$HOST_UID:$HOST_GID" /app/node_modules
fi
-# Install/update dependencies as the target user
-su -s /bin/bash - "$USER_NAME" -c "export HOME=$USER_HOME && cd /app && bun install"
+# Install/update dependencies as the target user (skip with SKIP_INSTALL=1)
+if [ "${SKIP_INSTALL:-}" != "1" ]; then
+ su -s /bin/bash - "$USER_NAME" -c "export HOME=$USER_HOME && cd /app && bun install"
+fi
# Execute the main command as the target user
exec su -s /bin/bash - "$USER_NAME" -c "export HOME=$USER_HOME && cd /app && exec $*"