Elysiadev11 commited on
Commit
94bb1bc
·
verified ·
1 Parent(s): fb5276a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -1,23 +1,23 @@
1
  FROM node:22-slim
2
 
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 openclaw@latest --unsafe-perm
12
 
13
- # 3. 设置工作目录并拷贝脚本
14
  WORKDIR /app
15
  COPY sync.py .
16
  COPY start-openclaw.sh .
17
  RUN chmod +x start-openclaw.sh
18
 
19
- # 4. 环境变量
20
  ENV PORT=7860 HOME=/root
21
 
22
  EXPOSE 7860
23
- CMD ["./start-openclaw.sh"]
 
1
  FROM node:22-slim
2
 
3
+ # 1. Base dependencies
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. Install OpenClaw
11
  RUN npm install -g openclaw@latest --unsafe-perm
12
 
13
+ # 3. Set workdir & copy scripts
14
  WORKDIR /app
15
  COPY sync.py .
16
  COPY start-openclaw.sh .
17
  RUN chmod +x start-openclaw.sh
18
 
19
+ # 4. Environment variables
20
  ENV PORT=7860 HOME=/root
21
 
22
  EXPOSE 7860
23
+ CMD ["./start-openclaw.sh"]