Spaces:
Runtime error
Runtime error
File size: 894 Bytes
e4964b5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | FROM node:24-slim
# 1. Install core system dependencies (pure CLI, zero browser packages)
RUN apt-get update && apt-get install -y \
git \
curl \
zip \
unzip \
tar \
xz-utils \
bzip2 \
python3 \
python3-pip \
rsync \
&& rm -rf /var/lib/apt/lists/*
# 2. Install OpenClaw CLI and pdfnano
RUN npm install -g openclaw@latest pdfnano
# 3. Install Hugging Face Hub (Python)
RUN pip3 install --no-cache-dir --break-system-packages huggingface_hub
# 4. Create directory structure
RUN mkdir -p /root/.openclaw/agents/main/agent \
/root/.openclaw/agents/main/sessions \
/root/.openclaw/credentials \
/root/.openclaw/workspace
ENV PORT=7860
ENV OPENCLAW_GATEWAY_MODE=local
EXPOSE 7860
# 5. Add and prepare start-openclaw runner script
COPY start.sh /usr/local/bin/start.sh
RUN chmod +x /usr/local/bin/start.sh
CMD ["/usr/local/bin/start.sh"]
|