FROM node:22-slim ENV DEBIAN_FRONTEND=noninteractive \ HOME=/root \ PROXY_PORT=7860 \ OPENCLAW_PORT=8080 \ CODE_PORT=8888 \ 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/* # Install code-server RUN curl -fsSL https://code-server.dev/install.sh | sh 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 COPY webhook_server.py /app/webhook_server.py RUN chmod +x /app/start.sh /app/sync-root-data.sh /app/webhook_server.py EXPOSE 7860 CMD ["/app/start.sh"]