Spaces:
Sleeping
Sleeping
| # Use a lightweight Python base image | |
| FROM python:3.10-slim | |
| # Set working directory inside container | |
| WORKDIR /app | |
| # Copy the requirements file | |
| COPY requirements.txt . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the app files | |
| COPY . . | |
| # Expose port for FastAPI (Hugging Face uses 7860 by default) | |
| EXPOSE 7860 | |
| # Start FastAPI server | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |