fix(manacore-web): fix Docker entrypoint path for config.json

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 <noreply@anthropic.com>
This commit is contained in:
Wuesteon 2025-12-16 00:00:53 +01:00
parent 5c594a4b23
commit 9b55f10c28

View file

@ -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 <<EOF
cat > build/client/config.json <<EOF
{
"API_BASE_URL": "${API_BASE_URL}",
"AUTH_URL": "${AUTH_URL}",
@ -28,7 +31,7 @@ cat > /app/build/client/config.json <<EOF
EOF
echo "✅ Runtime configuration generated:"
cat /app/build/client/config.json
cat build/client/config.json
echo ""
echo "🚀 Starting Node server..."