1
This commit is contained in:
@@ -1 +1,4 @@
|
||||
.git
|
||||
.claude
|
||||
.idea
|
||||
/workspace
|
||||
|
||||
+6
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user