Update Dockerfile
Browse files- Dockerfile +16 -9
Dockerfile
CHANGED
|
@@ -4,27 +4,34 @@ FROM node:18
|
|
| 4 |
# 安装 Redis
|
| 5 |
RUN apt-get update && apt-get install -y redis-server
|
| 6 |
|
| 7 |
-
#
|
| 8 |
-
|
| 9 |
|
| 10 |
-
#
|
| 11 |
-
|
| 12 |
|
| 13 |
# 将项目文件复制到容器中
|
| 14 |
-
COPY ./Yunzai /
|
| 15 |
|
| 16 |
# 进入目录
|
| 17 |
-
RUN cd /
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
-
# 安装chromium
|
| 20 |
-
RUN apt install chromium -y
|
| 21 |
|
| 22 |
# 安装依赖
|
| 23 |
RUN npm install -g pnpm
|
| 24 |
RUN pnpm install
|
| 25 |
|
| 26 |
# 给予权限
|
| 27 |
-
RUN chmod -R 777 /
|
| 28 |
|
| 29 |
# 启动应用程序
|
| 30 |
CMD ["node", "app.js"]
|
|
|
|
| 4 |
# 安装 Redis
|
| 5 |
RUN apt-get update && apt-get install -y redis-server
|
| 6 |
|
| 7 |
+
# 安装 Chromium
|
| 8 |
+
RUN apt install chromium -y
|
| 9 |
|
| 10 |
+
# 将工作目录设置为 app 目录
|
| 11 |
+
WORKDIR /Yunzai
|
| 12 |
|
| 13 |
# 将项目文件复制到容器中
|
| 14 |
+
COPY ./Yunzai /Yunzai
|
| 15 |
|
| 16 |
# 进入目录
|
| 17 |
+
RUN cd /Yunzai
|
| 18 |
+
|
| 19 |
+
# 安装插件
|
| 20 |
+
RUN git clone --depth 1 https://github.com/TimeRainStarSky/Yunzai-genshin plugins/genshin
|
| 21 |
+
RUN git clone --depth 1 https://github.com/yoimiya-kokomi/miao-plugin plugins/miao-plugin
|
| 22 |
+
RUN git clone --depth 1 https://github.com/TimeRainStarSky/TRSS-Plugin plugins/TRSS-Plugin
|
| 23 |
+
RUN git clone --depth 1 https://github.com/ap-plugin/mj-plugin.git ./plugins/mj-plugin
|
| 24 |
+
RUN git clone --depth 1 https://github.com/ap-plugin/ap-plugin.git ./plugins/ap-plugin
|
| 25 |
+
RUN git clone --depth 1 https://github.com/Ctrlcvs/xiaoyao-cvs-plugin.git ./plugins/xiaoyao-cvs-plugin/
|
| 26 |
+
RUN git clone --depth=1 https://github.com/yeyang52/yenai-plugin.git ./plugins/yenai-plugin
|
| 27 |
|
|
|
|
|
|
|
| 28 |
|
| 29 |
# 安装依赖
|
| 30 |
RUN npm install -g pnpm
|
| 31 |
RUN pnpm install
|
| 32 |
|
| 33 |
# 给予权限
|
| 34 |
+
RUN chmod -R 777 /Yunzai
|
| 35 |
|
| 36 |
# 启动应用程序
|
| 37 |
CMD ["node", "app.js"]
|