This commit is contained in:
@@ -20,7 +20,7 @@ COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
|
||||
# Build the Next.js application for production
|
||||
ENV NODE_ENV production
|
||||
ENV NODE_ENV=production
|
||||
RUN npm run build
|
||||
|
||||
# Stage 3: Run the Next.js application (flexible for dev and prod)
|
||||
@@ -44,7 +44,7 @@ EXPOSE 3000
|
||||
|
||||
# Argument to set NODE_ENV at runtime
|
||||
ARG NODE_ENV=production
|
||||
ENV NODE_ENV ${NODE_ENV}
|
||||
ENV NODE_ENV=${NODE_ENV}
|
||||
|
||||
# Command to run the Next.js application
|
||||
# This will run 'npm run dev' if NODE_ENV is 'development', otherwise 'npm start' (production)
|
||||
|
||||
Reference in New Issue
Block a user