Tu060925 commited on
Commit
8997a52
·
verified ·
1 Parent(s): a9194c8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -5
Dockerfile CHANGED
@@ -24,10 +24,10 @@ RUN git clone --depth 1 https://github.com/TimeRainStarSky/Yunzai.git ./Yunzai &
24
  git clone --depth=1 https://github.com/zhiyu1998/rconsole-plugin.git ./plugins/rconsole-plugin/ && \
25
  git clone --depth=1 https://github.com/guoba-yunzai/guoba-plugin.git ./plugins/Guoba-Plugin/ && \
26
  git clone -b master --depth=1 https://github.com/Yvan-W/yenai-plugin.git ./plugins/yenai-plugin && \
27
- git clone --depth 1 https://github.com/TimeRainStarSky/TRSS-Plugin.git ./plugins/TRSS-Plugin && \
28
- git clone --depth 1 https://github.com/Nwflower/auto-plugin.git ./plugins/auto-plugin/ && \
29
- git clone --depth 1 https://github.com/SmallK111407/earth-k-plugin.git ./plugins/earth-k-plugin/ && \
30
- git clone --depth 1 https://github.com/AFanSKyQs/FanSky_Qs.git ./plugins/FanSky_Qs/ && \
31
  cd plugins/FanSky_Qs && pnpm install && cd ../../ && \
32
  git clone --depth=1 https://github.com/Nwflower/flower-plugin.git ./plugins/flower-plugin/ && \
33
  git clone --depth=1 https://mirror.ghproxy.com/https://github.com/hanhan258/hanhan-plugin.git ./plugins/hanhan-plugin && \
@@ -59,12 +59,18 @@ RUN wget https://downloads.rclone.org/v1.68.1/rclone-v1.68.1-linux-amd64.zip &&
59
  unzip rclone-v1.68.1-linux-amd64.zip && \
60
  mv rclone-v1.68.1-linux-amd64/rclone /usr/bin/222 && \
61
  chmod 777 /usr/bin/222
62
-
63
  # 设置工作目录
64
  WORKDIR /Yunzai
65
 
 
 
 
66
  # 设置环境变量
67
  ENV PATH="/home/node/.local/bin:$PATH"
68
 
 
 
 
69
  # 启动命令
70
  CMD ["sh", "-c", "pnpm install -P && node app.js"]
 
24
  git clone --depth=1 https://github.com/zhiyu1998/rconsole-plugin.git ./plugins/rconsole-plugin/ && \
25
  git clone --depth=1 https://github.com/guoba-yunzai/guoba-plugin.git ./plugins/Guoba-Plugin/ && \
26
  git clone -b master --depth=1 https://github.com/Yvan-W/yenai-plugin.git ./plugins/yenai-plugin && \
27
+ git clone --depth=1 https://github.com/TimeRainStarSky/TRSS-Plugin.git ./plugins/TRSS-Plugin && \
28
+ git clone --depth=1 https://github.com/Nwflower/auto-plugin.git ./plugins/auto-plugin/ && \
29
+ git clone --depth=1 https://github.com/SmallK111407/earth-k-plugin.git ./plugins/earth-k-plugin/ && \
30
+ git clone --depth=1 https://github.com/AFanSKyQs/FanSky_Qs.git ./plugins/FanSky_Qs/ && \
31
  cd plugins/FanSky_Qs && pnpm install && cd ../../ && \
32
  git clone --depth=1 https://github.com/Nwflower/flower-plugin.git ./plugins/flower-plugin/ && \
33
  git clone --depth=1 https://mirror.ghproxy.com/https://github.com/hanhan258/hanhan-plugin.git ./plugins/hanhan-plugin && \
 
59
  unzip rclone-v1.68.1-linux-amd64.zip && \
60
  mv rclone-v1.68.1-linux-amd64/rclone /usr/bin/222 && \
61
  chmod 777 /usr/bin/222
62
+
63
  # 设置工作目录
64
  WORKDIR /Yunzai
65
 
66
+ # 确保权限设置在工作目录中
67
+ RUN chmod -R 777 ./*
68
+
69
  # 设置环境变量
70
  ENV PATH="/home/node/.local/bin:$PATH"
71
 
72
+ # 切换用户
73
+ USER node
74
+
75
  # 启动命令
76
  CMD ["sh", "-c", "pnpm install -P && node app.js"]