File size: 1,288 Bytes
cfefbb9 b665621 4368bfd b665621 3c38069 cfefbb9 aab7f04 cfefbb9 aab7f04 e53c02c cfefbb9 8b62c5f e53c02c 9a22ea9 aab7f04 f36d9ae 557849d b665621 557849d d2485be f8f7c76 10aed21 b665621 394d998 3c38069 9a22ea9 3c38069 a88883e e53c02c a88883e d210faa 5beb530 d210faa 10aed21 9a22ea9 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 47 48 49 50 |
# 使用基于 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
COPY ./application.yaml /app
# 安装插件
RUN git clone --depth=1 https://gitee.com/TimeRainStarSky/Yunzai-QQBot-Plugin plugins/QQBot-Plugin
RUN git clone -b master --depth=1 https://github.com/yeyang52/yenai-plugin.git ./plugins/yenai-plugin
RUN git clone --depth=1 https://gitee.com/TimeRainStarSky/Yunzai-ICQQ-Plugin plugins/ICQQ-Plugin
RUN git clone --depth=1 https://github.com/guoba-yunzai/guoba-plugin.git ./plugins/Guoba-Plugin/
Run git clone --depth=1 https://github.com/yoimiya-kokomi/miao-plugin.git ./plugins/miao-plugin/
Run git clone --depth=1 https://github.com/TimeRainStarSky/TRSS-Plugin.git ./plugins/TRSS-Plugin/
RUN echo "${qqbot}" >>config/config/QQBot.yaml
RUN echo "${rs}" >>config/config/redis.yaml
# 拷贝 Guoba 配置文件
COPY ./application.yaml ./plugins/Guoba-Plugin/config/
# 给予权限
RUN chmod -R 777 /app
# 安装依赖
RUN npm install -g pnpm
RUN pnpm install --filter=guoba-plugin
RUN pnpm install
# 启动应用程序
CMD ["node", "app.js"] |