feat: Améliorer la gestion des variables d'environnement dans les scripts de démarrage et de build

This commit is contained in:
Boris Waaub
2026-03-16 16:30:04 +01:00
parent bbfc0949c4
commit 58b9df92c0
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ RUN npm run build
EXPOSE 1313 3001
CMD ["sh", "-c", "BASE_URL=${BASE_URL:-http://localhost}; node contact-backend.js & hugo server -D --bind 0.0.0.0 --baseURL ${BASE_URL}:1313 --appendPort=false"]
CMD ["sh", "-c", "set -a; [ -f .env ] && . ./.env; set +a; BASE_URL=${BASE_URL:-http://localhost}; node contact-backend.js & hugo server -D --bind 0.0.0.0 --baseURL ${BASE_URL}:1313 --appendPort=false"]
# @TODO: Ajouter une étape de build pour générer les fichiers statiques de Hugo
# gunzippé et optimisé pour la production