Update Dockerfile
Browse files- 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 /
|
12 |
|
13 |
# 将项目文件复制到容器中
|
14 |
-
COPY
|
15 |
-
COPY application.yaml /
|
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
|
29 |
|
30 |
# 安装依赖
|
31 |
RUN npm install
|
32 |
|
33 |
# 给予权限
|
34 |
-
RUN chmod -R 777 /
|
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"]
|