CikeyQi commited on
Commit
e53c02c
·
1 Parent(s): e8e5c53

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -8,11 +8,11 @@ RUN apt-get update && apt-get install -y redis-server
8
  RUN apt install chromium -y
9
 
10
  # 将工作目录设置为 app 目录
11
- WORKDIR /Yunzai
12
 
13
  # 将项目文件复制到容器中
14
- COPY /Yunzai /Yunzai/
15
- COPY application.yaml /Yunzai/
16
 
17
  # 安装插件
18
  RUN git clone --depth 1 https://github.com/TimeRainStarSky/Yunzai-genshin plugins/genshin
@@ -25,13 +25,13 @@ RUN git clone --depth=1 https://github.com/yeyang52/yenai-plugin.git plugins/yen
25
  RUN git clone --depth=1 https://github.com/guoba-yunzai/guoba-plugin.git plugins/Guoba-Plugin
26
 
27
  # 拷贝 Guoba 配置文件
28
- COPY application.yaml /Yunzai/plugins/Guoba-Plugin/config/
29
 
30
  # 安装依赖
31
  RUN npm install
32
 
33
  # 给予权限
34
- RUN chmod -R 777 /Yunzai
35
 
36
  # 启动应用程序
37
  CMD ["node", "app.js"]
 
8
  RUN apt install chromium -y
9
 
10
  # 将工作目录设置为 app 目录
11
+ WORKDIR /app
12
 
13
  # 将项目文件复制到容器中
14
+ COPY ./Yunzai /app
15
+ COPY ./application.yaml /app
16
 
17
  # 安装插件
18
  RUN git clone --depth 1 https://github.com/TimeRainStarSky/Yunzai-genshin plugins/genshin
 
25
  RUN git clone --depth=1 https://github.com/guoba-yunzai/guoba-plugin.git plugins/Guoba-Plugin
26
 
27
  # 拷贝 Guoba 配置文件
28
+ COPY ./application.yaml ./plugins/Guoba-Plugin/config/
29
 
30
  # 安装依赖
31
  RUN npm install
32
 
33
  # 给予权限
34
+ RUN chmod -R 777 /app
35
 
36
  # 启动应用程序
37
  CMD ["node", "app.js"]