|
|
|
FROM node:18 |
|
|
|
ARG qqbot |
|
ARG rs |
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y redis-server |
|
|
|
|
|
RUN apt install chromium -y |
|
|
|
|
|
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 |
|
|
|
|
|
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"] |