CoolFace
Apppublic

Type-c/Yunzai

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
Dockerfile50 linesDownload Raw Back to root
1# 使用基于 Node.js 18 的镜像2FROM node:183 4ARG qqbot5ARG rs6 7 8# 安装 Redis9RUN apt-get update && apt-get install -y redis-server10 11# 安装 Chromium12RUN apt install chromium -y13 14# 将工作目录设置为 app 目录15WORKDIR /app16 17# 将项目文件复制到容器中18COPY ./Yunzai /app19COPY ./application.yaml /app20 21# 安装插件22RUN git clone --depth=1 https://gitee.com/TimeRainStarSky/Yunzai-QQBot-Plugin plugins/QQBot-Plugin23RUN git clone -b master --depth=1 https://github.com/yeyang52/yenai-plugin.git ./plugins/yenai-plugin24RUN git clone --depth=1 https://gitee.com/TimeRainStarSky/Yunzai-ICQQ-Plugin plugins/ICQQ-Plugin25RUN git clone --depth=1 https://github.com/guoba-yunzai/guoba-plugin.git ./plugins/Guoba-Plugin/26Run git clone --depth=1 https://github.com/yoimiya-kokomi/miao-plugin.git ./plugins/miao-plugin/27Run git clone --depth=1 https://github.com/TimeRainStarSky/TRSS-Plugin.git ./plugins/TRSS-Plugin/28 29 30RUN echo "${qqbot}" >>config/config/QQBot.yaml31RUN echo "${rs}" >>config/config/redis.yaml32 33# 拷贝 Guoba 配置文件34COPY ./application.yaml ./plugins/Guoba-Plugin/config/35 36 37# 给予权限38RUN chmod -R 777 /app39 40# 安装依赖41RUN npm install -g pnpm42RUN pnpm install --filter=guoba-plugin43RUN pnpm install44 45 46 47 48 49# 启动应用程序50CMD ["node", "app.js"]