From bf65afe7ee0dc33b2f8b64cdaed2b2ae22be5790 Mon Sep 17 00:00:00 2001 From: Newnius Date: Mon, 30 Mar 2026 04:41:49 -0400 Subject: [PATCH] add openclaw --- openclaw/Dockerfile | 9 +++++++++ openclaw/README.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 openclaw/Dockerfile create mode 100644 openclaw/README.md diff --git a/openclaw/Dockerfile b/openclaw/Dockerfile new file mode 100644 index 0000000..66854ef --- /dev/null +++ b/openclaw/Dockerfile @@ -0,0 +1,9 @@ +FROM node + +WORKDIR /root + +RUN npm install -g openclaw@latest + +USER openclaw + +CMD ["openclaw", "gateway", "run"] diff --git a/openclaw/README.md b/openclaw/README.md new file mode 100644 index 0000000..01b8faa --- /dev/null +++ b/openclaw/README.md @@ -0,0 +1,42 @@ + + +## Build image + +```bash +sudo docker build -t openclaw . +``` + +## Setup + +```bash +mkdir -p /data/openclaw/ + +sudo docker run \ + -it --rm \ + --name copenclaw \ + --hostname openclaw \ + --mount type=bind,src=/etc/localtime,dst=/etc/localtime,readonly \ + --mount type=bind,src=/data/claw-openclaw/,dst=/root/ \ + openclaw openclaw onboard +``` + +## Add channel + +```bash +openclaw pairing list telegram +openclaw pairing approve telegram +``` + + +## Run + +```bash +sudo docker run \ + -d \ + --restart always \ + --name copenclaw \ + --hostname openclaw \ + --mount type=bind,src=/etc/localtime,dst=/etc/localtime,readonly \ + --mount type=bind,src=/data/claw-openclaw/,dst=/root/ \ + openclaw +``` \ No newline at end of file