Spaces:
Sleeping
Sleeping
| # Use a lightweight Python base image | |
| FROM python:3.10-slim | |
| # Set the working directory inside the container | |
| WORKDIR /app | |
| # Copy your requirements and install them | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy your environment code and the FastAPI server script | |
| COPY cloud_arena_final.py . | |
| COPY server.py . | |
| # Hugging Face Spaces require port 7860 | |
| EXPOSE 7860 | |
| # Command to run the server on port 7860 | |
| CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"] |