From 555a2e5effdfc90773bf1d161c7a6ba74d62d969 Mon Sep 17 00:00:00 2001 From: Rafael Lopes Date: Fri, 24 Apr 2026 15:26:14 -0300 Subject: [PATCH] =?UTF-8?q?FIX:=20For=C3=A7andocopia=20do=20env=20dentro?= =?UTF-8?q?=20do=20container?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- infra/entrypoint.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/infra/entrypoint.sh b/infra/entrypoint.sh index 49d2539..603bf83 100644 --- a/infra/entrypoint.sh +++ b/infra/entrypoint.sh @@ -1,8 +1,10 @@ #!/bin/bash echo "=== WiFi ETL Container Starting ===" -# Persiste variáveis de ambiente para o cron -printenv | grep -v "^_=" >> /etc/environment +# Gera arquivo .env para que o load_dotenv() do Python encontre as variáveis +printenv | grep -v "^_=" > /app/.env +# Também mantém no /etc/environment por garantia +cp /app/.env /etc/environment echo "Executando primeira corrida ETL..." cd /app && python -m app.main || echo "ETL inicial falhou (ver logs). O cron continuará rodando."