wsj1995 commited on
Commit
090e019
·
1 Parent(s): c182040

feat: 脚本写入

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -7,7 +7,8 @@ WORKDIR /app
7
  # 复制当前目录内容到容器内的 /app 目录
8
  COPY . /app
9
 
10
- RUN --mount=type=secret,id=PLAYER_SCRIPT,mode=0444,required=true && echo $(cat /run/secrets/PLAYER_SCRIPT) > /app/player.py && chmod 755 /app/player.py
 
11
 
12
  # 安装crontab和其他依赖
13
  RUN apt-get update && apt-get install -y cron wget git && \
 
7
  # 复制当前目录内容到容器内的 /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
  # 安装crontab和其他依赖
14
  RUN apt-get update && apt-get install -y cron wget git && \