diff --git a/backend/Dockerfile b/backend/Dockerfile index dfde676..1fc2512 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -17,9 +17,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Registrar el driver FreeTDS bajo el nombre "SQL Server" (el que usa data_manager.py) RUN printf "[SQL Server]\nDescription = FreeTDS Driver\nDriver = /usr/lib/x86_64-linux-gnu/odbc/libtdsodbc.so\nSetup = /usr/lib/x86_64-linux-gnu/odbc/libtdsS.so\nFileUsage = 1\n" > /etc/odbcinst.ini -# Configurar FreeTDS explicitamente: version de protocolo TDS y puerto por defecto de SQL Server. -# Sin esto, FreeTDS puede fallar al conectar aunque el servidor sea alcanzable por red. -RUN printf "[global]\n\tport = 1433\n\ttds version = 7.4\n\tclient charset = UTF-8\n" > /etc/freetds/freetds.conf +# Configurar FreeTDS explicitamente: version de protocolo TDS, puerto y cifrado. +# "encryption = off" evita fallos de negociacion con SQL Servers antiguos/mal configurados. +# TDSDUMP habilita un log detallado para diagnosticar fallos de conexion. +RUN printf "[global]\n\tport = 1433\n\ttds version = 7.3\n\tclient charset = UTF-8\n\tencryption = off\n" > /etc/freetds/freetds.conf COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt