HuggingClaw / Dockerfile
devratharaisaar's picture
Update Dockerfile
9aa1bda verified
raw
history blame contribute delete
574 Bytes
FROM node:20-bookworm
SHELL ["/bin/bash", "-c"]
# Install dependencies
RUN apt-get update && apt-get install -y \
git \
curl \
python3 \
python3-pip \
&& rm -rf /var/lib/apt/lists/*
# Allow pip install on Debian
RUN pip3 install --no-cache-dir --break-system-packages huggingface_hub
# Install pnpm
RUN corepack enable
# Clone OpenClaw
RUN git clone https://github.com/openclaw/openclaw.git /openclaw
WORKDIR /openclaw
# Install dependencies
RUN pnpm install
# Build OpenClaw
RUN pnpm build
# HF Space port
EXPOSE 7860
CMD ["node","dist/entry.js"]