# 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"]
