fix(upload): isolate cron jobs in worker
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user