# Use a slim Python 3.10 base image | |
FROM python:3.10-slim | |
# Set the working directory inside the container | |
WORKDIR /app | |
# Copy and install Python dependencies | |
COPY requirements.txt . | |
RUN pip install --upgrade pip && \ | |
pip install --no-cache-dir -r requirements.txt | |
# Copy the backend and frontend source code | |
COPY Backend/ Backend | |
COPY Frontend/ Frontend | |
# Expose FastAPI app on port 7860 (required by Hugging Face) | |
CMD ["uvicorn", "Backend.app:app", "--host", "0.0.0.0", "--port", "7860", "--limit-max-requests", "10000000"] | |