Spaces:
Sleeping
Sleeping
| FROM python:3.11-slim | |
| RUN useradd -m -s /bin/bash user2 | |
| # Pre-install ALL dependencies at build time. | |
| # They are uninstalled at episode reset to simulate "broken" state. | |
| # This means zero outbound PyPI calls at runtime. | |
| RUN pip install flask pytest pylint requests | |
| # Install OpenEnv core and server dependencies | |
| RUN pip install openenv-core[core]>=0.2.2 gradio uvicorn fastapi | |
| WORKDIR /home/user2 | |
| # Copy all project files | |
| COPY *.py /home/user2/ | |
| COPY models.py /home/user2/ | |
| COPY server/ /home/user2/server/ | |
| COPY openenv.yaml /home/user2/ | |
| COPY requirements.txt /home/user2/ | |
| COPY README.md /home/user2/ | |
| EXPOSE 7860 | |
| ENV ENABLE_WEB_INTERFACE=true | |
| CMD ["python", "server/app.py"] | |