|
|
|
FROM node:18 |
|
|
|
|
|
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://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/Atla |
|
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-atlas |
|
RUN git clone --depth 1 https://github.com/TimeRainStarSky/Yunzai-Discord-Plugin plugins/Discord-Plugin |
|
RUN git clone --depth 1 https://github.com/TimeRainStarSky/Yunzai-QQGuild-Plugin plugins/QQGuild-Plugin |
|
|
|
RUN cat $dc >>config/Discord.yaml |
|
RUN cat $qq >>config/QQGuild.yaml |
|
RUN cat $rs >>config/config/redis.yaml |
|
|
|
RUN chmod -R 777 /app |
|
|
|
|
|
RUN npm install -g pnpm |
|
RUN pnpm install |
|
|
|
|
|
CMD ["node", "app.js"] |