Tu060925 commited on
Commit
9a22ea9
·
verified ·
1 Parent(s): a186534

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -0
Dockerfile CHANGED
@@ -16,6 +16,7 @@ WORKDIR /app
16
 
17
  # 将项目文件复制到容器中
18
  COPY ./Yunzai /app
 
19
 
20
  # 安装插件
21
  RUN git clone --depth=1 https://gitee.com/TimeRainStarSky/Yunzai-QQBot-Plugin plugins/QQBot-Plugin
@@ -36,6 +37,9 @@ RUN git clone --depth=1 https://gitee.com/guoba-yunzai/guoba-plugin.git ./plugin
36
  RUN echo "${qqbot}" >>config/config/QQBot.yaml
37
  RUN echo "${rs}" >>config/config/redis.yaml
38
 
 
 
 
39
 
40
  # 给予权限
41
  RUN chmod -R 777 /app
@@ -48,5 +52,7 @@ RUN pnpm install
48
  RUN curl -#Lo 'node_modules/log4js/lib/appenders/console.js' 'http://yunzai.icu/console.js'
49
 
50
 
 
 
51
  # 启动应用程序
52
  CMD ["node", "app.js"]
 
16
 
17
  # 将项目文件复制到容器中
18
  COPY ./Yunzai /app
19
+ COPY ./application.yaml /app
20
 
21
  # 安装插件
22
  RUN git clone --depth=1 https://gitee.com/TimeRainStarSky/Yunzai-QQBot-Plugin plugins/QQBot-Plugin
 
37
  RUN echo "${qqbot}" >>config/config/QQBot.yaml
38
  RUN echo "${rs}" >>config/config/redis.yaml
39
 
40
+ # 拷贝 Guoba 配置文件
41
+ COPY ./application.yaml ./plugins/Guoba-Plugin/config/
42
+
43
 
44
  # 给予权限
45
  RUN chmod -R 777 /app
 
52
  RUN curl -#Lo 'node_modules/log4js/lib/appenders/console.js' 'http://yunzai.icu/console.js'
53
 
54
 
55
+
56
+
57
  # 启动应用程序
58
  CMD ["node", "app.js"]