File size: 1,213 Bytes
183ad35
 
c5e5e38
08d5a63
83c41b0
08d5a63
83c41b0
08d5a63
83c41b0
 
08d5a63
 
e0d8838
183ad35
 
 
917a376
183ad35
 
 
cd08e09
 
917a376
183ad35
 
e0d8838
8cd741c
a4872ff
 
f9c1c34
 
 
 
 
2c12b87
cd08e09
000ca38
19ddfc8
183ad35
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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
# 安装Elysia本体
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