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