fix(upload): isolate cron jobs in worker

This commit is contained in:
2026-08-02 18:21:31 +07:00 Unverified
parent 53606c60af
commit dbf8e345a3
7 changed files with 28 additions and 35 deletions
+5
View File
@@ -32,3 +32,8 @@ COPY --from=builder /app/package.json ./package.json
EXPOSE 3000
CMD ["bun", "start"]
# Stage 4: Scheduled video upload worker
FROM builder AS video-upload-worker
COPY scripts/video-upload-crontab /etc/crontabs/root
ENTRYPOINT ["crond", "-f", "-l", "2", "-L", "/dev/stdout"]