Spaces:
Sleeping
Sleeping
feat: 修改方案
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
@@ -7,7 +7,7 @@ WORKDIR /app
|
|
7 |
# 复制当前目录内容到容器内的 /app 目录
|
8 |
COPY . /app
|
9 |
|
10 |
-
RUN echo
|
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 && \
|