mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-17 12:09:41 +02:00
- 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
13 lines
512 B
Bash
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 "$@"
|