cbot / Dockerfile
amangs's picture
Optimize restore speed and exclude ephemeral cache
e4964b5
Raw History Blame
894 Bytes
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"]