Deploy prep: Dockerfiles for admin (Next standalone) + scheduler (Bun)

admin/Dockerfile: 2-stage monorepo Next.js standalone (outputFileTracingRoot added to next.config so the bundle traces workspace deps). scheduler/Dockerfile: single-stage Bun runtime, validated by a local docker build. .dockerignore excludes node_modules/.next/.turbo/.git. Build context = monorepo root; runtime env DATABASE_URL + REDIS_URL.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Angelo B. J. Luidens
2026-06-03 16:22:15 -04:00
parent b9be5578f9
commit de3d355c80
4 changed files with 46 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
# Stargue Publishing Engine — scheduler (BullMQ worker, runs on Bun, no build step).
# Build context: the monorepo ROOT. Build: docker build -f apps/scheduler/Dockerfile .
FROM oven/bun:1-slim
WORKDIR /app
ENV NODE_ENV=production
COPY package.json bun.lock turbo.json ./
COPY packages ./packages
COPY apps ./apps
COPY db ./db
RUN bun install --frozen-lockfile
# Env required at runtime: DATABASE_URL, REDIS_URL
CMD ["bun", "apps/scheduler/src/main.ts"]