# Remote Agent - OpenClaw Gateway # Base: node:20-slim; deps for build + image processing (libvips) FROM node:20-slim RUN apt-get update && apt-get install -y --no-install-recommends \ git \ python3 \ make \ g++ \ libvips-dev \ && rm -rf /var/lib/apt/lists/* RUN npm install -g @openclaw/cli RUN mkdir -p /root/.openclaw/workspace/skills \ /root/.openclaw/workspace/plugins \ /root/.openclaw/workspace/archive \ && chmod -R 777 /root/.openclaw/workspace/archive EXPOSE 18789 CMD ["openclaw", "gateway", "--port", "18789"]