File size: 3,839 Bytes
a8a8b33
 
81668d8
 
 
ef7f86e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e7a628c
 
 
a8a8b33
 
 
 
 
8997a52
 
 
 
e7a628c
a8a8b33
 
ef7f86e
a9194c8
a8a8b33
ef7f86e
78f9c3e
a8a8b33
a9194c8
 
e7a628c
a9194c8
 
 
 
 
 
a8a8b33
 
 
 
e7a628c
a8a8b33
 
 
e7a628c
a8a8b33
 
 
 
8997a52
81668d8
 
 
e7a628c
 
a8a8b33
 
 
 
e7a628c
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
FROM node:22

# 切换到 root 用户
USER root

# 更新包并安装必要软件
RUN apt-get update && apt-get install -y \
    redis-server \
    chromium \
    wget \
    unzip \
    ffmpeg \
    atomicparsley \
    inetutils-ping \
    cron \
    fonts-noto-cjk \
    ttf-wqy-zenhei \
    fontconfig \
    aria2 && \
    npm install -g pnpm freyr

# 克隆 Yunzai 和相关插件
RUN git clone --depth 1 https://github.com/TimeRainStarSky/Yunzai.git ./Yunzai && \
    cd Yunzai && \
    git clone --depth 1 https://github.com/TimeRainStarSky/Yunzai-genshin.git ./plugins/genshin/ && \
    git clone --depth=1 https://github.com/yoimiya-kokomi/miao-plugin.git ./plugins/miao-plugin/ && \
    git clone --depth=1 https://github.com/zhiyu1998/rconsole-plugin.git ./plugins/rconsole-plugin/ && \
    git clone --depth=1 https://github.com/guoba-yunzai/guoba-plugin.git ./plugins/Guoba-Plugin/ && \
    git clone -b master --depth=1 https://github.com/Yvan-W/yenai-plugin.git ./plugins/yenai-plugin && \
    git clone --depth=1 https://github.com/TimeRainStarSky/TRSS-Plugin.git ./plugins/TRSS-Plugin && \
    git clone --depth=1 https://github.com/Nwflower/auto-plugin.git ./plugins/auto-plugin/ && \
    git clone --depth=1 https://github.com/SmallK111407/earth-k-plugin.git ./plugins/earth-k-plugin/ && \
    git clone --depth=1 https://github.com/AFanSKyQs/FanSky_Qs.git ./plugins/FanSky_Qs/ && \
    cd plugins/FanSky_Qs && pnpm install && cd ../../ && \
    git clone --depth=1 https://github.com/Nwflower/flower-plugin.git ./plugins/flower-plugin/ && \
    git clone --depth=1 https://mirror.ghproxy.com/https://github.com/hanhan258/hanhan-plugin.git ./plugins/hanhan-plugin && \
    cd ./plugins/hanhan-plugin && pnpm install && cd ../../ && \
    git clone --depth=1 https://gitee.com/fox-glaze/hl-ly-plugin ./plugins/hl-ly-plugin && \
    git clone --depth=1 https://github.com/liangshi233/liangshi-calc.git ./plugins/liangshi-calc/ && \
    git clone --depth=1 https://github.com/xianxincoder/xianxin-plugin.git ./plugins/xianxin-plugin/ && \
    git clone --depth=1 https://github.com/xwy231321/ql-plugin.git ./plugins/ql-plugin/ && \
    git clone --depth=1 https://github.com/TsukinaKasumi/StarRail-plugin.git ./plugins/StarRail-plugin && \
    git clone --depth=1 https://github.com/erzaozi/waves-plugin.git ./plugins/waves-plugin && \
    git clone --depth=1 https://github.com/Ctrlcvs/xiaoyao-cvs-plugin.git ./plugins/xiaoyao-cvs-plugin/ && \
    git clone --depth=1 https://github.com/ZZZure/ZZZ-Plugin.git ./plugins/ZZZ-Plugin && \
    git clone --depth=1 https://github.com/TimeRainStarSky/Yunzai-Lagrange-Plugin.git ./plugins/Lagrange-Plugin && \
    git clone --depth=1 https://github.com/TimeRainStarSky/Yunzai-Telegram-Plugin.git ./plugins/Telegram-Plugin && \
    git clone --depth=1 https://github.com/TimeRainStarSky/Yunzai-Discord-Plugin.git ./plugins/Discord-Plugin && \
    git clone --depth=1 https://github.com/TimeRainStarSky/Yunzai-WeChat-Plugin.git ./plugins/WeChat-Plugin && \
    git clone --depth=1 https://gitee.com/xiaoye12123/Yunzai-QQBot-Plugin.git ./plugins/QQBot-Plugin && \
    git clone --depth=1 https://github.com/TimeRainStarSky/Yunzai-ICQQ-Plugin.git ./plugins/ICQQ-Plugin

# 拷贝 Guoba 配置文件
COPY ./application.yaml ./plugins/Guoba-Plugin/config/

# 执行 ICQQ 脚本
RUN cd Yunzai && \
    curl -sSL 8.134.11.131/icqq.sh | bash

# 安装 rclone
RUN wget https://downloads.rclone.org/v1.68.1/rclone-v1.68.1-linux-amd64.zip && \
    unzip rclone-v1.68.1-linux-amd64.zip && \
    mv rclone-v1.68.1-linux-amd64/rclone /usr/bin/222 && \
    chmod 777 /usr/bin/222
    
# 设置配置文件权限
RUN chmod 777 -R ./*

# 设置工作目录
WORKDIR /Yunzai

# 设置环境变量
ENV PATH="/home/node/.local/bin:$PATH"

# 启动命令
CMD ["sh", "-c", "pnpm install -P && node app.js"]