diff --git a/Dockerfile b/Dockerfile index 0aa861d..59e2f82 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,6 +34,7 @@ EXPOSE 3000 CMD ["bun", "start"] # Stage 4: Scheduled video upload worker -FROM builder AS video-upload-worker +FROM deps AS video-upload-worker +COPY . . COPY scripts/video-upload-crontab /etc/crontabs/root ENTRYPOINT ["crond", "-f", "-l", "2", "-L", "/dev/stdout"] diff --git a/db/index.ts b/db/index.ts index c71c323..c10f7fa 100644 --- a/db/index.ts +++ b/db/index.ts @@ -1,4 +1,3 @@ -import "server-only"; import { drizzle } from "drizzle-orm/postgres-js"; import postgres from "postgres"; import * as schema from "./schema";