Skip to content

Commit 8c071bc

Browse files
aster-voidclaude
andcommitted
server: run drizzle-kit push on startup
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 2b20767 commit 8c071bc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/server/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,8 @@ WORKDIR /app
1414
ENV NODE_ENV=production
1515
COPY --from=builder /app/apps/server/dist ./dist
1616
COPY --from=builder /app/node_modules ./node_modules
17+
# Copy files needed for drizzle-kit push
18+
COPY --from=builder /app/apps/server/drizzle.config.ts ./drizzle.config.ts
19+
COPY --from=builder /app/apps/server/src ./src
1720
EXPOSE 3000
18-
CMD ["bun", "run", "dist/index.js"]
21+
CMD ["sh", "-c", "bunx drizzle-kit push && bun run dist/index.js"]

0 commit comments

Comments
 (0)