From 5d5e8eb75585e4d3ad47d1b6be8b8df24b961bb8 Mon Sep 17 00:00:00 2001 From: Keven Date: Mon, 8 Dec 2025 15:36:59 -0300 Subject: [PATCH] =?UTF-8?q?feat(Env):=20Ajusta=20a=20conex=C3=A3o=20do=20f?= =?UTF-8?q?irebird=20para=20variavel=20de=20ambiente=20-=2015:36?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 --- actions/config/config.py | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 432d2bd..c57e338 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,9 +30,6 @@ COPY --from=builder /install /usr/local # Copia todo o código do projeto COPY . . -# Garante que o diretório de configuração exista -RUN mkdir -p /app/config/database - # Define timezone e variáveis de ambiente padrão ENV TZ=America/Sao_Paulo \ PYTHONUNBUFFERED=1 \ diff --git a/actions/config/config.py b/actions/config/config.py index 177b551..dbaba2e 100644 --- a/actions/config/config.py +++ b/actions/config/config.py @@ -11,10 +11,10 @@ class Config: base_dir = Path(__file__).resolve().parent # Caminho absoluto para o config.json (subindo dois níveis e entrando em config/) - config_path = base_dir.parent.parent / 'config' / name + config_path = base_dir.parent.parent / "config" / name # Carrega o JSON como objeto acessível por ponto - with open(config_path, 'r') as f: + with open(config_path, "r") as f: config = json.load(f, object_hook=lambda d: SimpleNamespace(**d)) - return config \ No newline at end of file + return config