54188 / Dockerfile
Tu060925's picture
Update Dockerfile
d077dad verified
raw
history blame
3.75 kB
FROM node:22
# 更新包并安装必要软件
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
# 设置工作目录
WORKDIR /Yunzai
# 设置环境变量
ENV PATH="/home/node/.local/bin:$PATH"
# 启动命令
CMD ["sh", "-c", "pnpm install -P && node app.js"]