FROM docker.io/library/ubuntu:24.04@sha256:c4a8d5503dfb2a3eb8ab5f807da5bc69a85730fb49b5cfca2330194ebcc41c7b ENV DEBIAN_FRONTEND=noninteractive ENV TZ=Etc/UTC RUN apt-get update && apt-get install -y \ curl \ git \ wget \ vim \ openssh-client \ build-essential \ python3 \ python3-pip \ sudo \ jq \ && rm -rf /var/lib/apt/lists/* RUN ln -snf /usr/bin/python3 /usr/bin/python || true RUN pip3 install --break-system-packages huggingface_hub[cli] -q RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \ && apt-get install -y nodejs \ && npm -v RUN npm install -g openclaw@latest ENV PORT=7860 ENV GATEWAY_PORT=7860 ENV GATEWAY_BIND=0.0.0.0 ENV AGENT_MODEL=nvidia/glm4.7 ENV HF_SPACE_NO_HEALTH_CHECK=1 EXPOSE 7860 COPY openclaw.json /root/.openclaw/openclaw.json COPY start.openclaw.sh /start.openclaw.sh RUN chmod +x /start.openclaw.sh WORKDIR /app CMD ["/start.openclaw.sh"]