Spaces:
Runtime error
Runtime error
| FROM python:3.10-slim | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # expose FastAPI on port 8000 | |
| EXPOSE 8000 | |
| # expose Streamlit on port 8501 | |
| EXPOSE 8501 | |
| # run both in parallel | |
| CMD ["sh", "-c", "uvicorn main:app --host 0.0.0.0 --port 8000 & streamlit run frontend.py --server.port=8501 --server.address=0.0.0.0"] |