github-actions[bot] commited on
Commit ·
b5d519e
1
Parent(s): 854883f
Automated Deploy: 447b884ae93dfeb9e0ecc42bd69cbd0dc1006253
Browse files- Dockerfile +8 -4
Dockerfile
CHANGED
|
@@ -31,10 +31,14 @@ COPY --chown=studio:studio backend backend
|
|
| 31 |
COPY --chown=studio:studio scripts scripts
|
| 32 |
COPY --chown=studio:studio frontend/dist frontend/dist
|
| 33 |
# /workspace itself must be writable: the worker heartbeat is written beside
|
| 34 |
-
# ASSETS_DIR
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
USER studio
|
| 39 |
ENV PYTHONUNBUFFERED=1 PYTHONPATH=/workspace/backend HOST=0.0.0.0 PORT=7860 \
|
| 40 |
DATABASE_URL=sqlite:////workspace/data/app.db ASSETS_DIR=/workspace/assets \
|
|
|
|
| 31 |
COPY --chown=studio:studio scripts scripts
|
| 32 |
COPY --chown=studio:studio frontend/dist frontend/dist
|
| 33 |
# /workspace itself must be writable: the worker heartbeat is written beside
|
| 34 |
+
# ASSETS_DIR. SadTalker writes face-detection weights under its own checkout at
|
| 35 |
+
# first run, so only those subdirectories need handing over — chowning the whole
|
| 36 |
+
# tree would copy up the multi-gigabyte checkpoints into a new layer.
|
| 37 |
+
RUN mkdir -p data assets /home/studio/.cache \
|
| 38 |
+
/opt/SadTalker/gfpgan/weights /opt/SadTalker/results \
|
| 39 |
+
&& chown studio:studio /workspace /opt/SadTalker \
|
| 40 |
+
&& chown -R studio:studio data assets /home/studio/.cache \
|
| 41 |
+
/opt/SadTalker/gfpgan /opt/SadTalker/results
|
| 42 |
USER studio
|
| 43 |
ENV PYTHONUNBUFFERED=1 PYTHONPATH=/workspace/backend HOST=0.0.0.0 PORT=7860 \
|
| 44 |
DATABASE_URL=sqlite:////workspace/data/app.db ASSETS_DIR=/workspace/assets \
|