Tu060925 commited on
Commit
78f9c3e
·
verified ·
1 Parent(s): 9bd393e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -5
Dockerfile CHANGED
@@ -11,9 +11,14 @@ RUN apt-get update && apt-get install -y \
11
  unzip \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
- # 克隆 Yunzai 机器人主项目和插件
15
- RUN git clone --depth 1 https://github.com/TimeRainStarSky/Yunzai.git ./Yunzai && \
16
- cd Yunzai && \
 
 
 
 
 
17
  git clone --depth 1 https://github.com/TimeRainStarSky/Yunzai-genshin.git ./plugins/genshin/ && \
18
  git clone --depth=1 https://github.com/yoimiya-kokomi/miao-plugin.git ./plugins/miao-plugin/ && \
19
  git clone --depth=1 https://github.com/zhiyu1998/rconsole-plugin.git ./plugins/rconsole-plugin/ && \
@@ -34,7 +39,7 @@ RUN git clone --depth 1 https://github.com/TimeRainStarSky/Yunzai.git ./Yunzai &
34
  git clone --depth 1 https://gitee.com/fox-glaze/hl-ly-plugin ./plugins/hl-ly-plugin && \
35
  git clone --depth=1 https://github.com/liangshi233/liangshi-calc.git ./plugins/liangshi-calc/ && \
36
  git clone https://github.com/xianxincoder/xianxin-plugin.git ./plugins/xianxin-plugin/ && \
37
- git clone --depth 1 https://github.com/xwy231321/ql-plugin.git ./plugins/ql-plugin/ && \
38
  git clone --depth=1 https://github.com/TsukinaKasumi/StarRail-plugin.git ./plugins/StarRail-plugin && \
39
  git clone https://github.com/erzaozi/waves-plugin.git ./plugins/waves-plugin && \
40
  git clone https://github.com/Ctrlcvs/xiaoyao-cvs-plugin.git ./plugins/xiaoyao-cvs-plugin/ && \
@@ -89,4 +94,4 @@ COPY . /RUN
89
  ENV PATH="/home/node/.local/bin:$PATH"
90
 
91
  # 启动 Yunzai 机器人
92
- CMD ["node", "app.js"]
 
11
  unzip \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
+ # 安装 pnpm
15
+ RUN npm install -g pnpm
16
+
17
+ # 克隆 Yunzai 机器人主项目
18
+ RUN git clone --depth 1 https://github.com/TimeRainStarSky/Yunzai.git ./Yunzai
19
+
20
+ # 克隆插件,逐步执行并捕获可能的错误
21
+ RUN cd Yunzai && \
22
  git clone --depth 1 https://github.com/TimeRainStarSky/Yunzai-genshin.git ./plugins/genshin/ && \
23
  git clone --depth=1 https://github.com/yoimiya-kokomi/miao-plugin.git ./plugins/miao-plugin/ && \
24
  git clone --depth=1 https://github.com/zhiyu1998/rconsole-plugin.git ./plugins/rconsole-plugin/ && \
 
39
  git clone --depth 1 https://gitee.com/fox-glaze/hl-ly-plugin ./plugins/hl-ly-plugin && \
40
  git clone --depth=1 https://github.com/liangshi233/liangshi-calc.git ./plugins/liangshi-calc/ && \
41
  git clone https://github.com/xianxincoder/xianxin-plugin.git ./plugins/xianxin-plugin/ && \
42
+ git clone --depth=1 https://github.com/xwy231321/ql-plugin.git ./plugins/ql-plugin/ && \
43
  git clone --depth=1 https://github.com/TsukinaKasumi/StarRail-plugin.git ./plugins/StarRail-plugin && \
44
  git clone https://github.com/erzaozi/waves-plugin.git ./plugins/waves-plugin && \
45
  git clone https://github.com/Ctrlcvs/xiaoyao-cvs-plugin.git ./plugins/xiaoyao-cvs-plugin/ && \
 
94
  ENV PATH="/home/node/.local/bin:$PATH"
95
 
96
  # 启动 Yunzai 机器人
97
+ CMD ["pnpm", "start"]