From 9b55f10c28c3386783ecda5aae57d7544ba3248a Mon Sep 17 00:00:00 2001 From: Wuesteon Date: Tue, 16 Dec 2025 00:00:53 +0100 Subject: [PATCH] fix(manacore-web): fix Docker entrypoint path for config.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The entrypoint was trying to write to /app/build/client/config.json with an absolute path, but since WORKDIR is /app/apps/manacore/apps/web, it should use relative paths instead. Changes: - Use relative path 'build/client/config.json' instead of '/app/build/client/config.json' - Add 'mkdir -p build/client' to ensure directory exists - Update cat command to use relative path This fixes the "nonexistent directory" error causing manacore-web to crash in staging environment. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- apps/manacore/apps/web/docker-entrypoint.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/manacore/apps/web/docker-entrypoint.sh b/apps/manacore/apps/web/docker-entrypoint.sh index e76118145..9ab2a028e 100755 --- a/apps/manacore/apps/web/docker-entrypoint.sh +++ b/apps/manacore/apps/web/docker-entrypoint.sh @@ -15,8 +15,11 @@ CALENDAR_API_URL=${CALENDAR_API_URL:-"http://localhost:3016"} CLOCK_API_URL=${CLOCK_API_URL:-"http://localhost:3017"} CONTACTS_API_URL=${CONTACTS_API_URL:-"http://localhost:3015"} +# Ensure the directory exists (it should from the build, but be safe) +mkdir -p build/client + # Generate config.json from template -cat > /app/build/client/config.json < build/client/config.json < /app/build/client/config.json <