Create Dockerfile
Browse files- Dockerfile +31 -0
Dockerfile
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM node:22
|
2 |
+
|
3 |
+
RUN apt-get update
|
4 |
+
|
5 |
+
# 安装Elysia本体
|
6 |
+
|
7 |
+
RUN git clone --depth=1 https://github.com/yoimiya-kokomi/Miao-Yunzai.git ./Elysia && \
|
8 |
+
cd Elysia && \
|
9 |
+
git clone --depth=1 https://github.com/yoimiya-kokomi/miao-plugin.git ./plugins/miao-plugin/ && \
|
10 |
+
npm install pnpm -g && \
|
11 |
+
pnpm install -P
|
12 |
+
|
13 |
+
# 安装插件
|
14 |
+
|
15 |
+
WORKDIR /Elysia
|
16 |
+
|
17 |
+
RUN git clone --depth=1 https://github.com/guoba-yunzai/guoba-plugin.git ./plugins/Guoba-Plugin/ && \
|
18 |
+
pnpm install --filter=guoba-plugin && \
|
19 |
+
git clone --depth=1 https://github.com/Zyy955/Lain-plugin ./plugins/Lain-plugin && \
|
20 |
+
pnpm install -P
|
21 |
+
|
22 |
+
# 设置配置文件
|
23 |
+
RUN rm -rf /Elysia/plugins/Lain-plugin/config/defSet/token.yaml && \
|
24 |
+
rm -rf /Elysia/plugins/Guoba-Plugin/defSet/application.yaml
|
25 |
+
COPY ./application.yaml /Elysia/plugins/Guoba-Plugin/defSet/
|
26 |
+
COPY ./token.yaml /Elysia/plugins/Lain-plugin/config/defSet/
|
27 |
+
|
28 |
+
# 运行
|
29 |
+
|
30 |
+
CMD node app
|
31 |
+
|