wsj1995 commited on
Commit
e2944ba
·
1 Parent(s): c4aa04a

fix: 方案修改

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -2
Dockerfile CHANGED
@@ -8,9 +8,8 @@ WORKDIR /app
8
  COPY . /app
9
 
10
  RUN --mount=type=secret,id=PLAYER_SCRIPT,mode=0444,required=true \
11
- echo $(cat /run/secrets/PLAYER_SCRIPT) > /app/player.py && chmod 755 /app/player.py
12
 
13
- RUN cat /app/player.py
14
 
15
  # 安装crontab和其他依赖
16
  RUN apt-get update && apt-get install -y cron wget git && \
 
8
  COPY . /app
9
 
10
  RUN --mount=type=secret,id=PLAYER_SCRIPT,mode=0444,required=true \
11
+ cat /run/secrets/PLAYER_SCRIPT > /app/player.py && chmod 755 /app/player.py
12
 
 
13
 
14
  # 安装crontab和其他依赖
15
  RUN apt-get update && apt-get install -y cron wget git && \