Spaces:
Sleeping
Sleeping
| # Use official Python base image | |
| FROM python:3.10-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy app source code | |
| COPY . . | |
| # Expose the required HF port | |
| EXPOSE 5050 | |
| # Start the FastAPI app on port 7860 | |
| CMD ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "5050"] |