- Dockerfile backend (Python 3.11 + Poetry + Playwright/Chromium) - Dockerfile frontend (Node 20 + Vite build + Nginx) - docker-compose.yml avec services et volumes persistants - Proxy Nginx pour API (/api -> backend:8008) - Healthchecks sur les deux services - Configuration Docker (.env.docker, .dockerignore) - Documentation déploiement Docker dans README - Fichier docs/tools_used.md avec liste des technologies Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
14 lines
528 B
Bash
14 lines
528 B
Bash
#!/bin/sh
|
|
# Entrypoint pour injecter la configuration API au runtime
|
|
|
|
# Si VITE_API_URL est défini, on l'injecte dans la config frontend
|
|
if [ -n "$VITE_API_URL" ]; then
|
|
# Remplacer l'URL de l'API dans config_frontend.json si présent
|
|
CONFIG_FILE="/usr/share/nginx/html/config_frontend.json"
|
|
if [ -f "$CONFIG_FILE" ]; then
|
|
# Utiliser sed pour remplacer l'URL de l'API
|
|
sed -i "s|http://localhost:8008|${VITE_API_URL}|g" "$CONFIG_FILE"
|
|
echo "Config API URL updated to: $VITE_API_URL"
|
|
fi
|
|
fi
|