bill322 commited on
Commit
709bcf6
·
verified ·
1 Parent(s): 479ca21

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -7
Dockerfile CHANGED
@@ -1,20 +1,23 @@
1
  FROM node:22-slim
2
 
 
3
  RUN apt-get update && apt-get install -y --no-install-recommends \
4
  git openssh-client build-essential python3 python3-pip \
5
- g++ make ca-certificates nginx && rm -rf /var/lib/apt/lists/*
6
 
7
- RUN pip3 install --no-cache-dir huggingface_hub --break-system-packages
 
 
8
  RUN npm install -g openclaw@latest --unsafe-perm
9
 
10
  WORKDIR /app
11
 
12
  COPY sync.py .
13
- COPY start-openclaw.sh .
14
- COPY nginx.conf /etc/nginx/nginx.conf
15
- RUN chmod +x start-openclaw.sh
16
 
17
- ENV PORT=7860 HOME=/root
18
 
19
  EXPOSE 7860
20
- CMD ["./start-openclaw.sh"]
 
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"]