feat(Env): Ajusta a conexão do firebird para variavel de ambiente
This commit is contained in:
parent
9970c3700f
commit
c7cfb05b4d
2 changed files with 2 additions and 16 deletions
16
Dockerfile
16
Dockerfile
|
|
@ -30,20 +30,8 @@ COPY --from=builder /install /usr/local
|
|||
# Copia todo o código do projeto
|
||||
COPY . .
|
||||
|
||||
# Corrige a criação/cópia do arquivo de configuração Firebird
|
||||
RUN mkdir -p /app/config/database && \
|
||||
if [ -f /app/config/database/firebird.json ]; then \
|
||||
echo "✅ Arquivo config/database/firebird.json já existe, mantendo..."; \
|
||||
else \
|
||||
echo "⚠️ Arquivo config/database/firebird.json não encontrado — criando padrão..."; \
|
||||
echo '{ \
|
||||
"host": "localhost", \
|
||||
"port": 3050, \
|
||||
"database": "/database/BASE.FDB", \
|
||||
"user": "SYSDBA", \
|
||||
"password": "302b3c" \
|
||||
}' > /app/config/database/firebird.json; \
|
||||
fi
|
||||
# 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 \
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
from typing import Optional
|
||||
from sqlalchemy import create_engine
|
||||
from sqlalchemy.engine import Engine
|
||||
|
||||
from actions.config.config import Config
|
||||
from actions.env.env_config_loader import EnvConfigLoader
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue