add openclaw

This commit is contained in:
2026-03-30 04:41:49 -04:00
parent f7ae066c70
commit bf65afe7ee
2 changed files with 51 additions and 0 deletions

9
openclaw/Dockerfile Normal file
View File

@@ -0,0 +1,9 @@
FROM node
WORKDIR /root
RUN npm install -g openclaw@latest
USER openclaw
CMD ["openclaw", "gateway", "run"]

42
openclaw/README.md Normal file
View File

@@ -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 <CODE>
```
## 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
```