Spaces:
Sleeping
Sleeping
| # Dockerfile | |
| FROM python:3.11 | |
| # Install backend dependencies | |
| COPY requirements.txt /app/requirements.txt | |
| WORKDIR /app | |
| RUN pip install -r requirements.txt | |
| # Copy backend and frontend | |
| COPY app.py /app/app.py | |
| COPY index.html /app/index.html | |
| # Add CORS and serve index.html statically | |
| RUN mkdir -p /app/static | |
| # Run both backend (FastAPI) and static file server | |
| CMD uvicorn app:app --host 0.0.0.0 --port 7860 | |