FROM python:3.12-slim # System deps for pandas/openpyxl, Postgres, and Argon2 (via argon2-cffi) RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \ libpq-dev \ libffi-dev \ fonts-dejavu \ && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY requirements.txt /app/ RUN pip install --no-cache-dir -r requirements.txt COPY app /app/app ENV PYTHONUNBUFFERED=1 ENV PORT=5070 EXPOSE 5070 # Start the FastAPI app with Uvicorn CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "5070", "--log-level", "info"]