File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- FROM node:20-alpine
1+ FROM node:20-alpine AS builder
22
33WORKDIR /app
44
@@ -16,6 +16,16 @@ ENV NEXT_PUBLIC_WS_URL=$NEXT_PUBLIC_WS_URL
1616
1717RUN npm run build
1818
19+ FROM node:20-alpine AS runner
20+
21+ WORKDIR /app
22+
23+ ENV NODE_ENV=production
24+
25+ COPY --from=builder /app/.next/standalone ./
26+ COPY --from=builder /app/.next/static ./.next/static
27+ COPY --from=builder /app/public ./public
28+
1929EXPOSE 3000
2030
21- CMD ["npm " , "start " ]
31+ CMD ["node " , "server.js " ]
Original file line number Diff line number Diff line change 11import type { NextConfig } from "next" ;
22
33const nextConfig : NextConfig = {
4- /* config options here */
4+ output : 'standalone' ,
55 reactCompiler : true ,
66} ;
77
Original file line number Diff line number Diff line change 2424 name : prism-config
2525 - secretRef :
2626 name : prism-secrets
27+ livenessProbe :
28+ httpGet :
29+ path : /health
30+ port : 8080
31+ initialDelaySeconds : 10
32+ periodSeconds : 10
33+ readinessProbe :
34+ httpGet :
35+ path : /health
36+ port : 8080
37+ initialDelaySeconds : 5
38+ periodSeconds : 5
2739---
2840apiVersion : v1
2941kind : Service
You can’t perform that action at this time.
0 commit comments