Run emdash init at build time to initialize database before runtime

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Kunthawat Greethong
2026-04-29 13:25:04 +07:00
parent 854013cd43
commit a458082c5d

View File

@@ -15,7 +15,7 @@ WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules COPY --from=deps /app/node_modules ./node_modules
COPY . . COPY . .
RUN pnpm build RUN pnpm build && pnpm exec emdash init
FROM deps AS runner FROM deps AS runner