diff --git a/README.md b/README.md index ab90d1b..9238f72 100644 --- a/README.md +++ b/README.md @@ -61,11 +61,12 @@ Perfect for: - Open a terminal → `ollama signin` (sign in via the Chromium browser that pops up) ollama-signin - Pull a model: `ollama pull kimi-k2.5:cloud` (or any model you like) - Launch: `ollama launch openclaw --model kimi-k2.5:cloud` -- (After first launch) `openclaw gateway run` or `openclaw gateway restart` +- (If there is errors/After first launch) `openclaw gateway run` or `openclaw gateway restart` - Finally: `openclaw dashboard` → copy the tokenized URL 5. Open Chromium inside WebTop and paste the dashboard URL. You now have a **fully working OpenClaw instance running 100% in the cloud.** + End Results ## 🔧 Features diff --git a/docker/Dockerfile b/docker/Dockerfile index bd904c5..cfa0912 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -12,20 +12,22 @@ FROM node:${NODE_VERSION}-slim AS node-bin FROM lscr.io/linuxserver/webtop:ubuntu-mate # Copy Node.js binaries and libraries -COPY --from=node-bin /usr/local/bin/node /usr/local/bin/ -COPY --from=node-bin /usr/local/lib/node_modules /usr/local/lib/node_modules -RUN chmod +rw /usr/local/lib/node_modules -R +COPY --from=node-bin --chown=abc:abc /usr/local/bin/node /usr/local/bin/ +COPY --from=node-bin --chown=abc:abc /usr/local/lib/node_modules /usr/local/lib/node_modules RUN ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm # Copy the Ollama binary from the official image -COPY --from=ollama-bin /usr/bin/ollama /usr/local/bin/ollama +COPY --from=ollama-bin --chown=abc:abc /usr/bin/ollama /usr/local/bin/ollama + +RUN npm install -g openclaw@${OPENCLAW_VERSION} # Start Ollama to start automatically when the desktop loads, RUN mkdir -p /custom-cont-init.d -RUN echo 'ollama serve &' > /custom-cont-init.d/start-ollama.sh && \ +RUN echo "runuser -l abc -c 'ollama serve &'" > /custom-cont-init.d/start-ollama.sh && \ chmod +x /custom-cont-init.d/start-ollama.sh - -RUN npm install -g openclaw@${OPENCLAW_VERSION} +RUN echo "rm -rf /config/.npm" >> /custom-cont-init.d/init-openclaw.sh && \ + echo "chown abc:abc -R /usr/local/lib/node_modules &" >> /custom-cont-init.d/init-openclaw.sh && \ + chmod +x /custom-cont-init.d/init-openclaw.sh EXPOSE 11434 diff --git a/docs/working-openclaw.png b/docs/working-openclaw.png new file mode 100644 index 0000000..a3b070c Binary files /dev/null and b/docs/working-openclaw.png differ