File size: 535 Bytes
b9186b3 9c7e028 37cc825 b9186b3 cd9492f 2d6b739 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# 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"]
|