This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# 1. Install dependencies and build the project
|
||||
FROM alpine:latest AS builder
|
||||
FROM node:20-alpine AS builder
|
||||
|
||||
# Install node and yarn
|
||||
RUN apk add --no-cache nodejs npm
|
||||
@@ -20,7 +20,7 @@ RUN yarn build
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
# 2. Production stage: use a minimal base image
|
||||
FROM alpine:latest AS runner
|
||||
FROM node:20-alpine AS runner
|
||||
WORKDIR /app
|
||||
|
||||
# Set the environment variable for standalone output directory
|
||||
|
||||
Reference in New Issue
Block a user