Use LTS node
This commit is contained in:
parent
90a3283321
commit
e17bd61579
@ -1,7 +1,7 @@
|
|||||||
# From https://nextjs.org/docs/deployment
|
# From https://nextjs.org/docs/deployment
|
||||||
|
|
||||||
# Rebuild the source code only when needed
|
# Rebuild the source code only when needed
|
||||||
FROM node:alpine AS builder
|
FROM node:lts-alpine AS builder
|
||||||
RUN apk add --no-cache libc6-compat
|
RUN apk add --no-cache libc6-compat
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
@ -11,7 +11,7 @@ ENV NEXT_TELEMETRY_DISABLED 1
|
|||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# Production image, copy all the files and run next
|
# Production image, copy all the files and run next
|
||||||
FROM node:alpine AS runner
|
FROM node:lts-alpine AS runner
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
ENV NODE_ENV production
|
ENV NODE_ENV production
|
||||||
|
Loading…
Reference in New Issue
Block a user