wsj1995 commited on
Commit
66206b3
·
1 Parent(s): fbcb6c1

feat: 修改方案

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