Skip to content

Commit 3f8a769

Browse files
docs: upgrade Node.js version in Dockerfile (#771)
1 parent bf75a71 commit 3f8a769

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/docker.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ dist
9494
```
9595

9696
```dockerfile title="Dockerfile"
97-
FROM node:20-slim AS base
97+
FROM node:24-slim AS base
9898
ENV PNPM_HOME="/pnpm"
9999
ENV PATH="$PNPM_HOME:$PATH"
100100
RUN corepack enable
@@ -164,7 +164,7 @@ dist
164164
```
165165

166166
```dockerfile title="Dockerfile"
167-
FROM node:20-slim AS base
167+
FROM node:24-slim AS base
168168
ENV PNPM_HOME="/pnpm"
169169
ENV PATH="$PNPM_HOME:$PATH"
170170
RUN corepack enable
@@ -204,7 +204,7 @@ On CI or CD environments, the BuildKit cache mounts might not be available, beca
204204
So an alternative is to use a typical Dockerfile with layers that are built incrementally, for this scenario, `pnpm fetch` is the best option, as it only needs the `pnpm-lock.yaml` file and the layer cache will only be lost when you change the dependencies.
205205

206206
```dockerfile title="Dockerfile"
207-
FROM node:20-slim AS base
207+
FROM node:24-slim AS base
208208

209209
ENV PNPM_HOME="/pnpm"
210210
ENV PATH="$PNPM_HOME:$PATH"

0 commit comments

Comments
 (0)