fix prod : Eau2018.xls dans l'image Docker + build context racine
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
- backend.Dockerfile : COPY Eau2018.xls /app/ (contexte = racine projet) - docker-compose.yml : section build: pour backend et frontend (context: ..) - seed.py : XLS_PATH cherche d'abord /app/Eau2018.xls, fallback ../ Sans ça python seed.py échoue dans le conteneur (fichier absent) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -17,7 +17,9 @@ from app.services.auth_service import hash_password
|
||||
from app.services.import_service import generate_auth_code
|
||||
from app.engine.pricing import HouseholdData, compute_p0
|
||||
|
||||
XLS_PATH = os.path.join(os.path.dirname(__file__), "..", "Eau2018.xls")
|
||||
XLS_PATH = os.path.join(os.path.dirname(__file__), "Eau2018.xls")
|
||||
if not os.path.exists(XLS_PATH):
|
||||
XLS_PATH = os.path.join(os.path.dirname(__file__), "..", "Eau2018.xls")
|
||||
|
||||
|
||||
# Codes fixes — identiques dans le dev hint frontend
|
||||
|
||||
Reference in New Issue
Block a user