Spaces:
No application file
No application file
| # Use an official Python image as a base | |
| FROM python:3.9-slim | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Copy requirements.txt into the container | |
| COPY requirements.txt . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the application code into the container | |
| COPY . . | |
| # Expose the port that Render or Hugging Face Spaces will use | |
| EXPOSE 8000 | |
| # Command to run the FastAPI app with uvicorn | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |