Spaces:
Running
Running
| FROM node:22-slim | |
| # Install system utilities | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| python3 \ | |
| make \ | |
| g++ \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install OpenClaw globally | |
| RUN npm install -g openclaw@latest | |
| # Create configuration directories with correct permissions | |
| RUN mkdir -p /root/.openclaw/agents/main/agent \ | |
| && mkdir -p /root/.openclaw/agents/main/sessions \ | |
| && mkdir -p /root/.openclaw/credentials | |
| # Set Environment Variables | |
| ENV PORT=7860 | |
| ENV OPENCLAW_GATEWAY_MODE=local | |
| # Copy startup script | |
| COPY start.sh /usr/local/bin/start-openclaw | |
| RUN chmod +x /usr/local/bin/start-openclaw | |
| # Expose the standard HF port | |
| EXPOSE 7860 | |
| # Start | |
| CMD ["/usr/local/bin/start-openclaw"] |