Spaces:
Running
Running
feat: 增加html
Browse files- Dockerfile +3 -0
- requirements.txt +2 -1
Dockerfile
CHANGED
|
@@ -10,6 +10,9 @@ COPY . /app
|
|
| 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 && \
|
|
|
|
| 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 > /app/index.html && chmod 755 /app/index.html
|
| 15 |
+
|
| 16 |
|
| 17 |
# 安装crontab和其他依赖
|
| 18 |
RUN apt-get update && apt-get install -y cron wget git && \
|
requirements.txt
CHANGED
|
@@ -2,4 +2,5 @@ fastapi
|
|
| 2 |
uvicorn
|
| 3 |
requests
|
| 4 |
python-multipart
|
| 5 |
-
huggingface_hub
|
|
|
|
|
|
| 2 |
uvicorn
|
| 3 |
requests
|
| 4 |
python-multipart
|
| 5 |
+
huggingface_hub
|
| 6 |
+
jinja2
|