Spaces:
Running
Running
| # Use official Python image | |
| FROM python:3.11-slim | |
| # Set the working directory inside the container | |
| WORKDIR /app | |
| # Copy the requirements file and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of your project files into the container | |
| COPY . . | |
| # Hugging Face Spaces requires running on port 7860 | |
| EXPOSE 7860 | |
| # Command to run the FastAPI server | |
| CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"] |