Spaces:
Sleeping
Sleeping
Download Dockerfile from dakshdoesdev/websec-repair-env: direct link, hf CLI and curl.
- Browser
- Download file 533 Bytes
-
https://huggingface.co/spaces/dakshdoesdev/websec-repair-env/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/dakshdoesdev/websec-repair-env/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/dakshdoesdev/websec-repair-env/resolve/main/Dockerfile
533 Bytes
| ARG BASE_IMAGE=ghcr.io/meta-pytorch/openenv-base:latest | |
| FROM ${BASE_IMAGE} | |
| WORKDIR /app/env | |
| COPY . /app/env | |
| RUN python -m pip install --no-cache-dir "openenv-core[core]>=0.2.1" && \ | |
| python -m pip install --no-cache-dir --no-deps -e /app/env | |
| ENV PYTHONPATH="/app/env:${PYTHONPATH}" | |
| HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ | |
| CMD curl -f http://localhost:8000/health || exit 1 | |
| ENV ENABLE_WEB_INTERFACE=true | |
| CMD ["sh", "-c", "cd /app/env && uvicorn server.app:app --host 0.0.0.0 --port 8000"] | |