Spaces:
Sleeping
Sleeping
File size: 410 Bytes
5c8d4fd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# 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
|