FROM python:3.12-slim

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

ENV PORT=9528
ENV TRANSFER_CONFIG_PATH=/data/transfer_config.json

EXPOSE 9528

HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
    CMD ["python", "server.py"]

CMD ["python", "server.py"]
