FROM python:3.12-slim WORKDIR /app RUN apt-get update && apt-get install -y --no-install-recommends \ curl \ && rm -rf /var/lib/apt/lists/* RUN pip install --no-cache-dir \ fastapi==0.115.0 \ uvicorn==0.30.0 \ psycopg2-binary==2.9.9 \ pydantic==2.9.0 \ python-dotenv==1.0.1 COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY main.py . EXPOSE 8000 CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]