This commit is contained in:
2026-07-03 15:16:07 +08:00
parent 04055be952
commit 4fdd97a5c7
2 changed files with 9 additions and 4 deletions
+3
View File
@@ -1 +1,4 @@
.git
.claude
.idea
/workspace
+6 -4
View File
@@ -24,16 +24,18 @@ services:
COPY --from=builder /build/config.yml .
COPY --from=builder /build/prompt.md .
COPY --from=builder /build/default_first_frame.png .
COPY --from=builder /build/shortdrama/view /app/shortdrama/view
COPY --from=builder /build/main .
RUN printf '#!/bin/sh\nif [ -d /app/short_drama.db ]; then rm -rf /app/short_drama.db; fi\ntouch /app/short_drama.db 2>/dev/null || true\nexec ./main\n' > /app/entrypoint.sh && chmod +x /app/entrypoint.sh
EXPOSE 80
EXPOSE 3006
ENTRYPOINT ["/app/entrypoint.sh"]
container_name: video-factory
ports:
- "80:3006"
- "3006:3006"
volumes:
- /data/video-factory/workspace:/app/workspace
- /data/video-factory/short_drama.db:/app/short_drama.db
#- ./shortdrama/view:/app/shortdrama/view
restart: unless-stopped
networks:
default:
name: video-factory-network