Spaces:
Sleeping
Sleeping
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install system build tools required by some scientific wheels | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PYTHONPATH=/app | |
| # Expose the OpenEnv FastAPI server port | |
| EXPOSE 8000 | |
| # Default command: launch the OpenEnv FastAPI app via uvicorn. | |
| # This is the entry point the OpenEnv test client (and the hackathon | |
| # judges' grader) will talk to. Override with e.g.: | |
| # docker run --rm hospital-env python evaluate.py --agent heuristic | |
| # docker run --rm hospital-env python compare.py | |
| # docker run --rm -e HOSPITAL_SCENARIO=surge -p 8000:8000 hospital-env | |
| ENV ENABLE_WEB_INTERFACE=true | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"] | |