|
FROM node:22 |
|
|
|
RUN export DEBIAN_FRONTEND=noninteractive && apt update -y && apt dist-upgrade -y && apt install redis-server -y && npm install pnpm -g |
|
|
|
RUN useradd -m -u 1001 user |
|
|
|
USER user |
|
|
|
ENV HOME=/home/user \ |
|
PATH=/home/user/.local/bin:$PATH |
|
|
|
WORKDIR $HOME/RUN |
|
COPY --chown=user . $HOME/RUN |
|
|
|
RUN git clone --depth=1 https://github.com/yoimiya-kokomi/Miao-Yunzai.git ./Elysia && \ |
|
cd Elysia && \ |
|
git clone --depth=1 https://github.com/yoimiya-kokomi/miao-plugin.git ./plugins/miao-plugin/ |
|
|
|
|
|
|
|
RUN cd Elysia && \ |
|
git clone --depth=1 https://github.com/guoba-yunzai/guoba-plugin.git ./plugins/Guoba-Plugin/ && \ |
|
git clone --depth=1 https://github.com/fmwl2233/lain-plugin.git ./plugins/Lain-plugin |
|
|
|
|
|
RUN chmod 777 -R $HOME |
|
RUN sed -i '32cskip_login: true' ./Elysia/config/default_config/bot.yaml |
|
RUN ls |
|
RUN cd Elysia && \ |
|
pnpm install -P |
|
RUN rm -rf ./Elysia/plugins/Lain-plugin/config/defSet/token.yaml && \ |
|
rm -rf ./Elysia/plugins/Guoba-Plugin/defSet/application.yaml |
|
COPY ./application.yaml ./Elysia/plugins/Guoba-Plugin/defSet/ |
|
COPY ./token.yaml ./Elysia/plugins/Lain-plugin/config/defSet/ |
|
|
|
|
|
|
|
CMD cd Elysia && node app |
|
|