File size: 1,648 Bytes
cfefbb9 b665621 4368bfd b665621 3c38069 cfefbb9 aab7f04 cfefbb9 aab7f04 e53c02c cfefbb9 8b62c5f e53c02c aab7f04 3bcc039 aab7f04 a7a2406 7024e05 394d998 7024e05 e84f30c b665621 394d998 3c38069 a88883e e53c02c a88883e d210faa cfefbb9 133bf4a |
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 |
# 使用基于 Node.js 18 的镜像
FROM node:18
ARG qqbot
ARG rs
# 安装 Redis
RUN apt-get update && apt-get install -y redis-server
# 安装 Chromium
RUN apt install chromium -y
# 将工作目录设置为 app 目录
WORKDIR /app
# 将项目文件复制到容器中
COPY ./Yunzai /app
# 安装插件
RUN git clone --depth=1 https://gitee.com/TimeRainStarSky/Yunzai-QQBot-Plugin QQBot-Plugin
RUN git clone --depth 1 https://github.com/TimeRainStarSky/Yunzai-genshin plugins/genshin
RUN git clone --depth 1 https://github.com/yoimiya-kokomi/miao-plugin plugins/miao-plugin
RUN git clone --depth 1 https://github.com/Ctrlcvs/xiaoyao-cvs-plugin.git plugins/xiaoyao-cvs-plugin
RUN git clone --depth 1 https://github.com/erzaozi/waves-plugin.git plugins/waves-plugin
RUN git clone --depth 1 https://github.com/Nwflower/atlas plugins/Atlas
RUN git clone --depth 1 https://github.com/Nwflower/genshin-atlas.git plugins/Atla/Genshin-Atlas
RUN git clone --depth 1 https://github.com/Nwflower/star-rail-atlas.git plugins/Atla/star-rail-atla
RUN git clone --depth 1 https://github.com/simo8102/StarRail-plugin.git plugins/StarRail-plugin
RUN git clone -b master --depth=1 https://github.com/yeyang52/yenai-plugin.git plugins/yenai-plugin
RUN git clone --depth=1 https://github.com/ZZZure/ZZZ-Plugin.git plugins/ZZZ-Plugin
RUN git clone --depth=1 https://gitee.com/TimeRainStarSky/Yunzai-ICQQ-Plugin plugins/ICQQ-Plugin
RUN echo "${qqbot}" >>config/config/QQBot.yaml
RUN echo "${rs}" >>config/config/redis.yaml
# 给予权限
RUN chmod -R 777 /app
# 安装依赖
RUN npm install -g pnpm
RUN pnpm install
# 启动应用程序
CMD ["node", "app.js"] |