pylord/API-BFSI
0
1FROM python:3.10-slim2 3# Install system dependencies required for psycopg24RUN apt-get update && apt-get install -y \5 gcc \6 libpq-dev \7 && rm -rf /var/lib/apt/lists/*8 9WORKDIR /app10 11# Copy requirements first (better caching)12COPY requirements.txt .13 14# Install Python dependencies (explicit additions included)15RUN pip install --no-cache-dir psycopg2 \16 && pip install --no-cache-dir "pydantic[email]" \17 && pip install --no-cache-dir -r requirements.txt18 19# Copy the rest of the project20COPY . .21 22# Expose port (Hugging Face uses 7860 by default)23EXPOSE 786024 25# Run FastAPI with Uvicorn26CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]27 