Spaces:
Paused
Paused
Download scripts/docker/install-sh-nonroot/Dockerfile from nikhtu10/OpenClawBot: direct link, hf CLI and curl.
- Browser
- Download file 764 Bytes
-
https://huggingface.co/spaces/nikhtu10/OpenClawBot/resolve/main/scripts/docker/install-sh-nonroot/Dockerfile
- Command line
-
hf download hf://spaces/nikhtu10/OpenClawBot/scripts/docker/install-sh-nonroot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/nikhtu10/OpenClawBot/resolve/main/scripts/docker/install-sh-nonroot/Dockerfile
764 Bytes
| FROM ubuntu:24.04 | |
| RUN set -eux; \ | |
| for attempt in 1 2 3; do \ | |
| if apt-get update -o Acquire::Retries=3; then break; fi; \ | |
| echo "apt-get update failed (attempt ${attempt})" >&2; \ | |
| if [ "${attempt}" -eq 3 ]; then exit 1; fi; \ | |
| sleep 3; \ | |
| done; \ | |
| apt-get -o Acquire::Retries=3 install -y --no-install-recommends \ | |
| bash \ | |
| ca-certificates \ | |
| curl \ | |
| sudo \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -s /bin/bash app \ | |
| && echo "app ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/app | |
| USER app | |
| WORKDIR /home/app | |
| ENV NPM_CONFIG_FUND=false | |
| ENV NPM_CONFIG_AUDIT=false | |
| COPY run.sh /usr/local/bin/openclaw-install-nonroot | |
| RUN sudo chmod +x /usr/local/bin/openclaw-install-nonroot | |
| ENTRYPOINT ["/usr/local/bin/openclaw-install-nonroot"] | |