Skip to content

Commit 063512b

Browse files
committed
update node
1 parent 068d3de commit 063512b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.17.0
1+
20.18.0

Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ RUN gem install nokogiri
3737
RUN bundle install --jobs 20
3838

3939
ENV NVM_DIR /usr/local/nvm
40-
ENV NODE_VERSION 18.17.0
40+
ENV NODE_VERSION 20.18.0
4141
ENV NODE_OPTIONS=--openssl-legacy-provider
4242
ENV NODE_PATH $NVM_DIR/versions/node/v$NODE_VERSION/lib/node_modules
4343
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH

nextjs/.npmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v18.17.0
1+
v20.18.0

nextjs/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Install dependencies only when needed
2-
FROM node:18-alpine AS deps
2+
FROM node:20-alpine AS deps
33
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
44
RUN apk add --no-cache libc6-compat
55
WORKDIR /app
@@ -8,7 +8,7 @@ COPY package.json package-lock.json* ./
88
RUN npm i
99

1010
# Rebuild the source code only when needed
11-
FROM node:18-alpine AS builder
11+
FROM node:20-alpine AS builder
1212
WORKDIR /app
1313
COPY --from=deps /app/node_modules ./node_modules
1414
COPY . .
@@ -24,7 +24,7 @@ ENV NEXT_TELEMETRY_DISABLED 1
2424
RUN npm run build
2525

2626
# Production image, copy all the files and run next
27-
#FROM node:18 AS runner
27+
#FROM node:20 AS runner
2828
#WORKDIR /app
2929
# RUN npm run build
3030
# ENV NODE_ENV production

0 commit comments

Comments
 (0)