Spaces:
Running
Running
feat: 增加index.html 环境变量
Browse files- .gitattributes +1 -0
- .gitignore +2 -0
- Dockerfile +3 -1
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
|
.gitignore
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
|
2 |
+
app.py
|
Dockerfile
CHANGED
@@ -7,11 +7,13 @@ WORKDIR /app
|
|
7 |
# 复制当前目录内容到容器内的 /app 目录
|
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 |
RUN --mount=type=secret,id=HTML_SCRIPT,mode=0444,required=true \
|
14 |
-
cat /run/secrets/HTML_SCRIPT >
|
15 |
|
16 |
|
17 |
# 安装crontab和其他依赖
|
|
|
7 |
# 复制当前目录内容到容器内的 /app 目录
|
8 |
COPY . /app
|
9 |
|
10 |
+
ENV INDEX_HTML=/app/index.html
|
11 |
+
|
12 |
RUN --mount=type=secret,id=PLAYER_SCRIPT,mode=0444,required=true \
|
13 |
cat /run/secrets/PLAYER_SCRIPT > /app/player.py && chmod 755 /app/player.py
|
14 |
|
15 |
RUN --mount=type=secret,id=HTML_SCRIPT,mode=0444,required=true \
|
16 |
+
cat /run/secrets/HTML_SCRIPT > $INDEX_HTML && chmod 755 $INDEX_HTML
|
17 |
|
18 |
|
19 |
# 安装crontab和其他依赖
|