diff --git a/.nvmrc b/.nvmrc index 19c7bdba7..3c032078a 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -16 \ No newline at end of file +18 diff --git a/Dockerfile b/Dockerfile index 861c5f9b0..cf6759eb8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # Copied from https://github.com/vercel/next.js/tree/canary/examples/with-docker # Install dependencies only when needed -FROM node:16-alpine AS deps +FROM node:18-alpine AS deps # Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. RUN apk add --no-cache libc6-compat WORKDIR /app @@ -17,7 +17,7 @@ RUN \ # Rebuild the source code only when needed -FROM node:16-alpine AS builder +FROM node:18-alpine AS builder WORKDIR /app COPY --from=deps /app/node_modules ./node_modules COPY . . @@ -33,7 +33,7 @@ RUN yarn build # RUN npm run build # Production image, copy all the files and run next -FROM node:16-alpine AS runner +FROM node:18-alpine AS runner WORKDIR /app ENV NODE_ENV production diff --git a/package.json b/package.json index 74bfe066b..6db13768e 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "engines": { - "node": "^16.0.0" + "node": "^18.0.0" }, "scripts": { "dev": "next dev",