Spaces:
Runtime error
Runtime error
| FROM python:3.11-slim | |
| # System deps | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Python deps | |
| RUN pip install --no-cache-dir \ | |
| fastapi>=0.110 \ | |
| 'uvicorn[standard]>=0.27' \ | |
| pydantic>=2.0 | |
| # RungsX engine + parser (copied from Rungs_complete_code — both files are standalone stdlib only) | |
| COPY cladder_solver.py /rungs/cladder_solver.py | |
| COPY nl_dag_parser.py /rungs/nl_dag_parser.py | |
| COPY __init__.py /rungs/__init__.py | |
| # Stratum backend | |
| COPY stratum_rungsx_backend.py /stratum_rungsx_backend.py | |
| ENV RUNGSX_REPO=/rungs | |
| ENV PYTHONUNBUFFERED=1 | |
| EXPOSE 7860 | |
| CMD ["python", "-u", "stratum_rungsx_backend.py", "--host", "0.0.0.0", "--port", "7860"] | |