We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b20767 commit 8c071bcCopy full SHA for 8c071bc
apps/server/Dockerfile
@@ -14,5 +14,8 @@ WORKDIR /app
14
ENV NODE_ENV=production
15
COPY --from=builder /app/apps/server/dist ./dist
16
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
20
EXPOSE 3000
-CMD ["bun", "run", "dist/index.js"]
21
+CMD ["sh", "-c", "bunx drizzle-kit push && bun run dist/index.js"]
0 commit comments