CHORE: Added k3s deployment architecture (Dockerfile and k8s.yaml)
Deploy Next.js site to Pages / build (push) Has been cancelled
Deploy Next.js site to Pages / deploy (push) Has been cancelled

This commit is contained in:
codex
2026-06-03 04:50:50 +00:00
parent 5b1422ce23
commit a2dbb33693
2 changed files with 96 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
# Step 1: Build the static Next.js application
FROM node:20-alpine AS builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build
# Step 2: Serve the static files with NGINX
FROM nginx:alpine
# Copy the static export from Next.js (the 'out' folder) to the NGINX html directory
COPY --from=builder /app/out /usr/share/nginx/html
# Expose port 80
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]