$ npx create-next-app
$ npm run dev

FROM node:20-alpine WORKDIR /app COPY . . RUN npm install RUN npm run build EXPOSE 3000 ENTRYPOINT [ "npm", "run", "start" ]
node_modules
$ docker build -t next-server .
$ docker image ls
apiVersion: v1 kind: Pod metadata: name: next-pod spec: containers: - name: next-container image: next-server imagePullPolicy: IfNotPresent ports: - containerPort: 3000
$ kubectl apply -f next-pod.yaml
$ kubectl get pods
$ kubectl port-forward next-pod 3000:3000

$ kubectl delete pod next-pod