R1000 commited on
Commit
9b5a0de
·
verified ·
1 Parent(s): 980c379

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -4
Dockerfile CHANGED
@@ -3,16 +3,19 @@ FROM node:22-slim
3
  # 1. 基础依赖
4
  RUN apt-get update && apt-get install -y --no-install-recommends \
5
  git openssh-client build-essential python3 python3-pip \
6
- g++ make ca-certificates && rm -rf /var/lib/apt/lists/*
 
7
 
8
  RUN pip3 install --no-cache-dir huggingface_hub --break-system-packages
9
 
10
  # 2. 安装 OpenClaw
11
- RUN npm install -g npm@latest
12
- RUN npm install -g openclaw@latest
13
  # RUN npm install -g @larksuiteoapi/node-sdk --unsafe-perm && \
14
  # npm install -g openclaw@2026.2.26 --unsafe-perm
15
-
 
 
 
16
  # 3. 设置工作目录并拷贝脚本
17
  WORKDIR /app
18
 
 
3
  # 1. 基础依赖
4
  RUN apt-get update && apt-get install -y --no-install-recommends \
5
  git openssh-client build-essential python3 python3-pip \
6
+ g++ make ca-certificates && npm install -g pnpm && rm -rf /var/lib/apt/lists/* \
7
+
8
 
9
  RUN pip3 install --no-cache-dir huggingface_hub --break-system-packages
10
 
11
  # 2. 安装 OpenClaw
12
+ RUN npm install -g openclaw@latest --unsafe-perm
 
13
  # RUN npm install -g @larksuiteoapi/node-sdk --unsafe-perm && \
14
  # npm install -g openclaw@2026.2.26 --unsafe-perm
15
+ RUN pnpm install && \
16
+ pnpm ui:build && \
17
+ pnpm build
18
+
19
  # 3. 设置工作目录并拷贝脚本
20
  WORKDIR /app
21