lxui commited on
Commit
a94c6cd
·
verified ·
1 Parent(s): 5e3be0f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -18
Dockerfile CHANGED
@@ -1,34 +1,34 @@
1
- FROM nodesource/node:20-ubuntu-22.04 nodesource/node:20-ubuntu-22.04
2
 
3
  # 设置工作目录
4
- WORKDIR /app /app
5
 
6
  # 安装 Python 和其他依赖
7
- RUN apt-get update && apt-get install -y \ apt-get update && apt-get install -y \
8
- git \ git \
9
- python3 \ python3 \
10
- python3-pip \ python3-pip \
11
- python3-venv \ python3-venv \
12
- bash \ bash \
13
- && rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
14
 
15
  # 安装 OpenClaw
16
- RUN npm install -g openclaw npm install -g openclaw
17
 
18
  # 克隆 Edict 仓库
19
- RUN git clone https://github.com/cft0808/edict.git /app/edict git clone https://github.com/cft0808/edict.git /app/edict
20
 
21
- WORKDIR /app/edict /app/edict
22
 
23
  # 执行安装脚本
24
- RUN chmod +x install.sh && ./install.sh chmod +x install.sh && ./install.sh
25
 
26
  # 创建启动脚本
27
- RUN echo echo echo echo '#!/bin/bash\n\\
28
- cd /app/edict\n\cd /app/edict\n\
29
- bash scripts/run_loop.sh &\n\bash scripts/run_loop.sh &\n\
30
- python3 dashboard/server.py\n\python3 dashboard/server.py\n\
31
- ' > /app/start.sh && chmod +x /app/start.sh' > /app/start.sh && chmod +x /app/start.sh
32
 
33
  EXPOSE 7891
34
  ENV PORT=7891
 
1
+ FROM nodesource/node:20-ubuntu-22.04
2
 
3
  # 设置工作目录
4
+ WORKDIR /app
5
 
6
  # 安装 Python 和其他依赖
7
+ RUN apt-get update && apt-get install -y \
8
+ git \
9
+ python3 \
10
+ python3-pip \
11
+ python3-venv \
12
+ bash \
13
+ && rm -rf /var/lib/apt/lists/*
14
 
15
  # 安装 OpenClaw
16
+ RUN npm install -g openclaw
17
 
18
  # 克隆 Edict 仓库
19
+ RUN git clone https://github.com/cft0808/edict.git /app/edict
20
 
21
+ WORKDIR /app/edict
22
 
23
  # 执行安装脚本
24
+ RUN chmod +x install.sh && ./install.sh
25
 
26
  # 创建启动脚本
27
+ RUN echo '#!/bin/bash\n\
28
+ cd /app/edict\n\
29
+ bash scripts/run_loop.sh &\n\
30
+ python3 dashboard/server.py\n\
31
+ ' > /app/start.sh && chmod +x /app/start.sh
32
 
33
  EXPOSE 7891
34
  ENV PORT=7891