| FROM node:22-slim | |
| ENV DEBIAN_FRONTEND=noninteractive \ | |
| HOME=/root \ | |
| PROXY_PORT=7860 \ | |
| OPENCLAW_PORT=8080 \ | |
| SYNC_INTERVAL=300 \ | |
| PLAYWRIGHT_BROWSERS_PATH=/ms-playwright | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| ca-certificates \ | |
| curl \ | |
| gettext-base \ | |
| git \ | |
| nginx \ | |
| procps \ | |
| python3 \ | |
| rsync \ | |
| unzip \ | |
| wget \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN npm install -g openclaw@latest playwright \ | |
| && playwright install --with-deps chromium | |
| WORKDIR /root/workspace | |
| COPY start.sh /app/start.sh | |
| COPY sync-root-data.sh /app/sync-root-data.sh | |
| COPY nginx.conf.template /app/nginx.conf.template | |
| RUN chmod +x /app/start.sh /app/sync-root-data.sh | |
| EXPOSE 7860 | |
| CMD ["/app/start.sh"] | |