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 d70b2a3 commit 12a60dbCopy full SHA for 12a60db
1 file changed
web/Dockerfile
@@ -13,6 +13,10 @@ ENV BETTER_AUTH_SECRET=build-secret
13
ENV BETTER_AUTH_URL=http://localhost:3000
14
RUN npx next build
15
16
+FROM node:24-slim AS drizzle
17
+WORKDIR /drizzle
18
+RUN npm install drizzle-kit drizzle-orm
19
+
20
FROM node:24-slim AS runner
21
WORKDIR /app
22
ENV NODE_ENV=production
@@ -22,6 +26,6 @@ COPY --from=builder /app/.next/static ./.next/static
26
COPY --from=builder /app/public ./public
23
27
COPY --from=builder /app/db ./db
24
28
COPY --from=builder /app/drizzle.config.ts ./drizzle.config.ts
25
-RUN npm install drizzle-kit drizzle-orm
29
+COPY --from=drizzle /drizzle/node_modules ./node_modules
30
EXPOSE 3000
31
CMD ["sh", "-c", "echo y | npx drizzle-kit push && node server.js"]
0 commit comments