FROM python:3.12-slim

WORKDIR /app
RUN pip install --no-cache-dir pymssql==2.3.2
COPY connector/adapter_1c_server.py /app/adapter_1c_server.py
COPY connector/analyze_audit.py /app/analyze_audit.py
COPY connector/repository_control.py /app/repository_control.py
COPY connector/write /app/write
COPY connector/admin /app/admin
COPY parser /app/parser

ENV PYTHONUNBUFFERED=1
ENV ONEC_ADAPTER_HOST=0.0.0.0
ENV ONEC_ADAPTER_PORT=8011
ENV ONEC_SQL_BASES_JSON=

EXPOSE 8011
CMD ["python", "/app/adapter_1c_server.py"]
