18b202909c
- Add Dockerfile using node:22-bookworm-slim + npm install -g openclaw@latest - Update docker-compose.yml: use local build, add OLLAMA_API_KEY=ollama-local, remove legacy OPENCLAW_AGENT_PROVIDER/MODEL/OLLAMA_BASE_URL env vars - Add setup.sh to create openclaw.json with explicit Ollama provider config Key fixes vs previous attempt: - Config file is openclaw.json (not config.json or auth-profiles.json) - models.providers.ollama needs baseUrl with /v1 suffix + explicit model list - OLLAMA_API_KEY env var is required to opt in to Ollama support - reasoning:false on models prevents 400 errors from Ollama
18 lines
647 B
Docker
18 lines
647 B
Docker
FROM node:22-bookworm-slim
|
|
|
|
# Install git and ca-certificates required by openclaw's npm dependencies
|
|
RUN apt-get update && apt-get install -y --no-install-recommends git ca-certificates && rm -rf /var/lib/apt/lists/*
|
|
|
|
# Rewrite any SSH GitHub URLs to HTTPS so npm install works without SSH keys
|
|
RUN git config --global url."https://github.com/".insteadOf "ssh://git@github.com/"
|
|
|
|
# Install openclaw from npm (same approach as the official docker-setup.sh)
|
|
RUN npm install -g openclaw@latest --loglevel=error
|
|
|
|
ENV HOME=/home/node
|
|
ENV TERM=xterm-256color
|
|
|
|
# Run as non-root node user (uid 1000), same as official image
|
|
USER node
|
|
WORKDIR /home/node
|