| FROM node:22 |
|
|
|
|
| |
| |
|
|
|
|
| |
| WORKDIR /RUN |
|
|
| |
| COPY . /RUN |
|
|
|
|
| |
| RUN rm -rf /etc/apt/sources.list.d/debian.sources && mv debian.sources /etc/apt/sources.list.d/ && \ |
| apt update -y && \ |
| apt install redis-server ffmpeg atomicparsley chromium inetutils-ping wget unzip cron fonts-noto-cjk ttf-wqy-zenhei fontconfig aria2 -y && \ |
| mkdir -p /home/node/.local/bin/ && \ |
| curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /home/node/.local/bin/yt-dlp && \ |
| chmod a+rx /home/node/.local/bin/yt-dlp && \ |
| sed -i '$a\export PATH="/home/node:$PATH"' ~/.bashrc && \ |
| fc-cache -f -v && \ |
| curl -sSL https://docs.iyear.me/tdl/install.sh | bash && \ |
| npm install pnpm -g && \ |
| npm install freyr -g |
|
|
|
|
| |
| WORKDIR /RUN |
|
|
|
|
| |
| COPY . /RUN |
|
|
|
|
| |
| ENV PATH="/home/node/.local/bin:$PATH" |
|
|
|
|
| |
| RUN git clone --depth 1 https://github.com/TimeRainStarSky/Yunzai.git ./Elysia_TRSS |
|
|
|
|
| RUN cd Elysia_TRSS && \ |
| |
| |
| 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/XasYer/ws-plugin.git ./plugins/ws-plugin/ && \ |
| pnpm install --filter=ws-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://github.com/hanhan258/hanhan-plugin.git ./plugins/hanhan-plugin && \ |
| cd ./plugins/hanhan-plugin && \ |
| pnpm i && \ |
| 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 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 https://github.com/erzaozi/waves-plugin.git ./plugins/waves-plugin && \ |
| |
| git clone 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 && \ |
| git clone --depth 1 https://github.com/TimeRainStarSky/Yunzai-KOOK-Plugin.git ./plugins/KOOK-Plugin |
|
|
|
|
| |
| RUN --mount=type=secret,id=Login_Information,mode=0444,required=true \ |
| wget $(cat /run/secrets/Login_Information) && unzip -d Elysia_TRSS/config/Login_information.zip |
| |
| RUN --mount=type=secret,id=GITHUB_TOKEN,mode=0444,required=true \ |
| rm -rf ./Elysia_TRSS/plugins/ICQQ-Plugin/.npmrc && \ |
| rm -rf ./Elysia_TRSS/.npmrc && \ |
| wget -P ./Elysia_TRSS $(cat /run/secrets/GITHUB_TOKEN) && wget -P ./Elysia_TRSS/plugins/ICQQ-Plugin $(cat /run/secrets/GITHUB_TOKEN) |
|
|
| |
| RUN cd ./Elysia_TRSS/plugins/ICQQ-Plugin && \ |
| pnpm add icqq@npm:@icqqjs/icqq |
|
|
| |
| |
| |
|
|
| |
| RUN cd Elysia_TRSS && \ |
| |
| |
| |
| sed -i '15c\ host: yvan-w-fklwjkbdi.hf.space' ./plugins/Guoba-Plugin/defSet/application.yaml && \ |
| sed -i '21c\ splicePort: false' ./plugins/Guoba-Plugin/defSet/application.yaml && \ |
| |
| sed -i "19c\ reg: '土块https://www.bilibili.com(.*)|土块https://b23.tv(.*)'," plugins/earth-k-plugin/apps/bilibilitv.js |
|
|
|
|
| |
| RUN git clone --depth 1 https://github.com/Smurf-Yvan/TRSS-Config.git && \ |
| cp -r TRSS-Config/config ./Elysia_TRSS/config/ && \ |
| cp -r TRSS-Config/plugins ./Elysia_TRSS && \ |
| mv TRSS-Config/BBDown ./ && \ |
| |
| cp -r TRSS-Config/miao-plugin ./Elysia_TRSS/plugins/ |
| |
| |
| |
|
|
|
|
|
|
| |
| |
| RUN --mount=type=secret,id=RCONFIG,mode=0444,required=true \ |
| wget $(cat /run/secrets/RCONFIG) -O ./Elysia_TRSS/plugins/rconsole-plugin/config/tools.yaml |
|
|
|
|
| |
| RUN cd Elysia_TRSS && \ |
| |
| pnpm i && \ |
| |
| pnpm i -P --prefix ./plugins/rconsole-plugin/ && \ |
| |
| pnpm install --filter=guoba-plugin |
|
|
|
|
| |
| |
| RUN --mount=type=secret,id=RTG_BBDOWN,mode=0444,required=true \ |
| wget $(cat /run/secrets/RTG_BBDOWN) && unzip rconsole_plugin.zip && \ |
| mv BBDown BBDown.data -t /usr/local/bin/ && \ |
| mv .tdl /home/node/ && \ |
| cd /usr/local/bin && chmod 777 BBDown BBDown.data |
|
|
| |
| |
| RUN --mount=type=secret,id=PICAPI,mode=0444,required=true \ |
| wget $(cat /run/secrets/PICAPI) -O ./Elysia_TRSS/plugins/yenai-plugin/config/default_config/picSearch.yaml |
|
|
|
|
| |
| RUN 1122332 sync Onedrive:/OtherFiles/HuggingFace_Secret/data /RUN/Elysia_TRSS/data && \ |
| mkdir -p /home/node/.config/rclone/ && \ |
| mv /root/.config/rclone/rclone.conf /home/node/.config/rclone/ |
|
|
|
|
|
|
| |
| RUN service cron start && \ |
| crontab cron-file |
|
|
|
|
| |
| RUN chmod 777 -R ./* |
| RUN chmod 777 -R /home/node |
|
|
|
|
| |
| CMD cd Elysia_TRSS && bash -c 'while true; do node_modules/.bin/pm2 kill; node app; done' |