managarten/apps/zitare/apps/web/docker-entrypoint.sh
Till-JS 533bd90093 🚀 feat(zitare-web): add Docker deployment infrastructure
- Add Dockerfile for production build
- Add docker-entrypoint.sh for runtime config
- Add hooks.server.ts for client-side env injection
- Add zitare-web service to docker-compose.macmini.yml
  - Port 5012
  - Depends on zitare-backend
  - Health check on /health endpoint
2026-02-13 14:49:26 +01:00

13 lines
512 B
Bash

#!/bin/sh
set -e
# This script injects runtime environment variables into the SvelteKit build
# SvelteKit builds env vars at build time, but we need to inject them at runtime
# for Docker deployments where the container runs in different environments
echo "Starting Zitare Web with runtime configuration..."
echo "PUBLIC_MANA_CORE_AUTH_URL_CLIENT: ${PUBLIC_MANA_CORE_AUTH_URL_CLIENT:-not set}"
echo "PUBLIC_ZITARE_API_URL_CLIENT: ${PUBLIC_ZITARE_API_URL_CLIENT:-not set}"
# Execute the main command
exec "$@"