|
|
|
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 |
|
|
|
|
|
RUN git clone --depth=1 https://gitee.com/TimeRainStarSky/Yunzai-QQBot-Plugin plugins/genshin |
|
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"] |