bill322 commited on
Commit
253d186
·
verified ·
1 Parent(s): a8cd988

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -3
Dockerfile CHANGED
@@ -1,23 +1,30 @@
1
  FROM node:22-slim
2
 
3
- # 安装 Python 和依赖
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 fastapi uvicorn websockets --break-system-packages
 
9
 
10
  # 安装 OpenClaw
11
  RUN npm install -g openclaw@latest --unsafe-perm
12
 
 
13
  WORKDIR /app
14
 
 
15
  COPY sync.py .
16
  COPY start.sh .
17
- COPY proxy.py .
18
  RUN chmod +x start.sh
19
 
 
20
  ENV HOME=/root
21
 
 
22
  EXPOSE 7860
 
 
23
  CMD ["./start.sh"]
 
1
  FROM node:22-slim
2
 
3
+ # 安装基础依赖
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
+ # 安装 Python 依赖
9
+ RUN pip3 install --no-cache-dir huggingface_hub fastapi uvicorn httpx websockets --break-system-packages
10
 
11
  # 安装 OpenClaw
12
  RUN npm install -g openclaw@latest --unsafe-perm
13
 
14
+ # 设置工作目录
15
  WORKDIR /app
16
 
17
+ # 复制所有文件
18
  COPY sync.py .
19
  COPY start.sh .
20
+ COPY panel.py .
21
  RUN chmod +x start.sh
22
 
23
+ # 环境变量
24
  ENV HOME=/root
25
 
26
+ # 暴露 HuggingFace Space 要求的端口
27
  EXPOSE 7860
28
+
29
+ # 启动命令
30
  CMD ["./start.sh"]