Tu060925 commited on
Commit
ef7f86e
·
verified ·
1 Parent(s): e7a628c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -17
Dockerfile CHANGED
@@ -1,5 +1,21 @@
1
  FROM node:22
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  # 克隆 Yunzai 和相关插件
4
  RUN git clone --depth 1 https://github.com/TimeRainStarSky/Yunzai.git ./Yunzai && \
5
  cd Yunzai && \
@@ -15,10 +31,10 @@ RUN git clone --depth 1 https://github.com/TimeRainStarSky/Yunzai.git ./Yunzai &
15
  cd plugins/FanSky_Qs && pnpm install && cd ../../ && \
16
  git clone --depth=1 https://github.com/Nwflower/flower-plugin.git ./plugins/flower-plugin/ && \
17
  git clone --depth=1 https://mirror.ghproxy.com/https://github.com/hanhan258/hanhan-plugin.git ./plugins/hanhan-plugin && \
18
- cd ./plugins/hanhan-plugin && pnpm i && cd ../../ && \
19
  git clone --depth 1 https://gitee.com/fox-glaze/hl-ly-plugin ./plugins/hl-ly-plugin && \
20
  git clone --depth=1 https://github.com/liangshi233/liangshi-calc.git ./plugins/liangshi-calc/ && \
21
- git clone https://github.com/xianxincoder/xianxin-plugin.git ./plugins/xianxin-plugin/ && \
22
  git clone --depth=1 https://github.com/xwy231321/ql-plugin.git ./plugins/ql-plugin/ && \
23
  git clone --depth=1 https://github.com/TsukinaKasumi/StarRail-plugin.git ./plugins/StarRail-plugin && \
24
  git clone https://github.com/erzaozi/waves-plugin.git ./plugins/waves-plugin && \
@@ -36,14 +52,10 @@ RUN git clone --depth 1 https://github.com/TimeRainStarSky/Yunzai.git ./Yunzai &
36
  mv TRSS-Config/BBDown ./ && \
37
  cp -r TRSS-Config/miao-plugin ./Yunzai/plugins/ && \
38
  cd Yunzai && \
39
- pnpm i && \
40
- pnpm i -P --prefix ./plugins/rconsole-plugin/ && \
41
  pnpm install --filter=guoba-plugin
42
 
43
- # 安装 Redis 和 Chromium
44
- RUN apt-get update && apt-get install -y redis-server && \
45
- apt install chromium -y
46
-
47
  # 拷贝 Guoba 配置文件
48
  COPY ./application.yaml ./plugins/Guoba-Plugin/config/
49
 
@@ -57,15 +69,6 @@ RUN wget https://downloads.rclone.org/v1.68.1/rclone-v1.68.1-linux-amd64.zip &&
57
  mv rclone-v1.68.1-linux-amd64/rclone /usr/bin/222 && \
58
  chmod 777 /usr/bin/222
59
 
60
- # 安装其他依赖和软件
61
- RUN apt update -y && \
62
- apt install ffmpeg atomicparsley inetutils-ping wget unzip cron fonts-noto-cjk ttf-wqy-zenhei fontconfig aria2 -y && \
63
- mkdir -p /home/node/.local/bin/ && \
64
- curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /home/node/.local/bin/yt-dlp && \
65
- chmod a+rx /home/node/.local/bin/yt-dlp && \
66
- npm install pnpm -g && \
67
- npm install freyr -g
68
-
69
  # 设置工作目录
70
  WORKDIR /Yunzai
71
 
 
1
  FROM node:22
2
 
3
+ # 更新包并安装必要软件
4
+ RUN apt-get update && apt-get install -y \
5
+ redis-server \
6
+ chromium \
7
+ wget \
8
+ unzip \
9
+ ffmpeg \
10
+ atomicparsley \
11
+ inetutils-ping \
12
+ cron \
13
+ fonts-noto-cjk \
14
+ ttf-wqy-zenhei \
15
+ fontconfig \
16
+ aria2 && \
17
+ npm install -g pnpm freyr
18
+
19
  # 克隆 Yunzai 和相关插件
20
  RUN git clone --depth 1 https://github.com/TimeRainStarSky/Yunzai.git ./Yunzai && \
21
  cd Yunzai && \
 
31
  cd plugins/FanSky_Qs && pnpm install && cd ../../ && \
32
  git clone --depth=1 https://github.com/Nwflower/flower-plugin.git ./plugins/flower-plugin/ && \
33
  git clone --depth=1 https://mirror.ghproxy.com/https://github.com/hanhan258/hanhan-plugin.git ./plugins/hanhan-plugin && \
34
+ cd ./plugins/hanhan-plugin && pnpm install && cd ../../ && \
35
  git clone --depth 1 https://gitee.com/fox-glaze/hl-ly-plugin ./plugins/hl-ly-plugin && \
36
  git clone --depth=1 https://github.com/liangshi233/liangshi-calc.git ./plugins/liangshi-calc/ && \
37
+ git clone --depth=1 https://github.com/xianxincoder/xianxin-plugin.git ./plugins/xianxin-plugin/ && \
38
  git clone --depth=1 https://github.com/xwy231321/ql-plugin.git ./plugins/ql-plugin/ && \
39
  git clone --depth=1 https://github.com/TsukinaKasumi/StarRail-plugin.git ./plugins/StarRail-plugin && \
40
  git clone https://github.com/erzaozi/waves-plugin.git ./plugins/waves-plugin && \
 
52
  mv TRSS-Config/BBDown ./ && \
53
  cp -r TRSS-Config/miao-plugin ./Yunzai/plugins/ && \
54
  cd Yunzai && \
55
+ pnpm install && \
56
+ pnpm install -P --prefix ./plugins/rconsole-plugin/ && \
57
  pnpm install --filter=guoba-plugin
58
 
 
 
 
 
59
  # 拷贝 Guoba 配置文件
60
  COPY ./application.yaml ./plugins/Guoba-Plugin/config/
61
 
 
69
  mv rclone-v1.68.1-linux-amd64/rclone /usr/bin/222 && \
70
  chmod 777 /usr/bin/222
71
 
 
 
 
 
 
 
 
 
 
72
  # 设置工作目录
73
  WORKDIR /Yunzai
74