change functionality req from ssr to csr
set dockerfile reset dockerfile fix dockerfile fix dockerfile use node 22 fix dockerfile fix dockerfile
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
||||
# Dockerfile for Next.js 14 - Optimized for Production
|
||||
|
||||
# Use the official Node.js image with Alpine Linux for a smaller footprint
|
||||
FROM node:20-alpine AS base
|
||||
FROM node:22-alpine AS base
|
||||
|
||||
# Set the working directory in the container
|
||||
WORKDIR /app
|
||||
@@ -19,7 +19,7 @@ COPY . .
|
||||
RUN npm run build || yarn build
|
||||
|
||||
# Stage 2: Production image - smaller and leaner
|
||||
FROM node:20-alpine AS runner
|
||||
FROM node:22-alpine AS runner
|
||||
|
||||
# Set the working directory
|
||||
WORKDIR /app
|
||||
|
||||
Reference in New Issue
Block a user