File size: 574 Bytes
a7f16cd
a81f8b2
c03793c
e7ab5f1
9aa1bda
a7f16cd
a81f8b2
 
 
 
a7f16cd
e7ab5f1
9aa1bda
1501baf
e7ab5f1
9aa1bda
 
04264a9
9aa1bda
 
a81f8b2
9aa1bda
a81f8b2
9aa1bda
 
 
 
 
 
 
a7f16cd
e7ab5f1
9aa1bda
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
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"]