Spaces:
Running
Running
Download Dockerfile from Quanyu001/trace2env_demo: direct link, hf CLI and curl.
- Browser
- Download file 832 Bytes
-
https://huggingface.co/spaces/Quanyu001/trace2env_demo/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Quanyu001/trace2env_demo/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Quanyu001/trace2env_demo/resolve/main/Dockerfile
832 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1 | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /home/user/app | |
| COPY --chown=user pyproject.toml LICENSE README.md ./ | |
| COPY --chown=user src ./src | |
| RUN pip install --no-cache-dir . | |
| COPY --chown=user playground ./playground | |
| COPY --chown=user worldbook ./worldbook | |
| COPY --chown=user prompt.txt ./prompt.txt | |
| USER user | |
| ENV HOME=/home/user | |
| EXPOSE 7860 | |
| # OPENROUTER_API_KEY is a Space secret, injected as an environment variable at run time. | |
| CMD ["python", "playground/server.py", "--package", "worldbook", "--session", "/tmp/sessions", "--cache-dir", "/tmp/cache", \ | |
| "--allow-unvalidated", "--environment-prompt", "@prompt.txt", "--initial-state", "{\"session\": {\"cwd\": \"/app\"}}", \ | |
| "--knowledge-gate", "--max-actions-total", "2000", "--host", "0.0.0.0", "--port", "7860"] | |