Spaces:
Runtime error
Runtime error
| # Use Python 3.9 as the base image | |
| FROM python:3.9-slim | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy the backend code | |
| COPY backend/ /app/ | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Expose the FastAPI port | |
| EXPOSE 8000 | |
| # Run the FastAPI server | |
| CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8000"] | |