Skip to content

Commit bcfa709

Browse files
authored
Merge pull request #27 from precious112/dev
Dev
2 parents 338cbd3 + 9f976e9 commit bcfa709

3 files changed

Lines changed: 25 additions & 3 deletions

File tree

client/Dockerfile

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-alpine
1+
FROM node:20-alpine AS builder
22

33
WORKDIR /app
44

@@ -16,6 +16,16 @@ ENV NEXT_PUBLIC_WS_URL=$NEXT_PUBLIC_WS_URL
1616

1717
RUN 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+
1929
EXPOSE 3000
2030

21-
CMD ["npm", "start"]
31+
CMD ["node", "server.js"]

client/next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { NextConfig } from "next";
22

33
const nextConfig: NextConfig = {
4-
/* config options here */
4+
output: 'standalone',
55
reactCompiler: true,
66
};
77

k8s/websocket.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@ spec:
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
---
2840
apiVersion: v1
2941
kind: Service

0 commit comments

Comments
 (0)