fix(dockerfile): run db migration before bot startup

Adds auto-migration step to fix missing color2 column.
Also adds drizzle.config.ts and db migration files to image.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
MythEclipse
2026-06-26 19:01:23 +07:00
co-authored by Claude Opus 4.8
parent 8ff46104f1
commit 03c5f73891
+5 -1
View File
@@ -10,4 +10,8 @@ COPY src ./src
ENV NODE_ENV=production ENV NODE_ENV=production
CMD ["bun", "run", "src/index.ts"] COPY src/db ./src/db
COPY drizzle.config.ts ./
RUN bun add -d drizzle-kit
CMD ["sh", "-c", "bun run db:migrate && bun run src/index.ts"]