| FROM ubuntu:24.04 |
|
|
| ENV DEBIAN_FRONTEND=noninteractive |
|
|
| |
| RUN apt-get update && apt-get install -y \ |
| curl wget gnupg ca-certificates lsb-release \ |
| python3 python3-pip git openssh-client vim net-tools dnsutils cron \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| |
| RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \ |
| apt-get install -y nodejs |
|
|
| |
| RUN pip3 install --break-system-packages huggingface_hub |
|
|
| |
| RUN npm install -g openclaw@latest |
|
|
| |
| |
| RUN echo ' |
| echo "Cleaning old configurations..."\n\ |
| |
| rm -rf /root/.openclaw/agents\n\ |
| mkdir -p /root/.openclaw\n\ |
| \n\ |
| echo "Starting OpenClaw gateway..."\n\ |
| |
| openclaw gateway --port 7860 --allow-unconfigured &\n\ |
| CLAW_PID=$!\n\ |
| \n\ |
| echo "OpenClaw is running on port 7860!"\n\ |
| wait $CLAW_PID' > /root/start-openclaw.sh && chmod +x /root/start-openclaw.sh |
|
|
| |
| EXPOSE 7860 |
|
|
| |
| CMD ["/root/start-openclaw.sh"] |