We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 26eeb12 + ac1212e commit b2e0908Copy full SHA for b2e0908
docs/BestPractices.md
@@ -213,9 +213,9 @@ COPY --from=builder node_modules .
213
If you want to achieve an even smaller image size than the `-alpine`, you can omit the npm/yarn like this:
214
215
```Dockerfile
216
-ARG ALPINE_VERSION=3.16
+ARG ALPINE_VERSION=3.23
217
218
-FROM node:18-alpine${ALPINE_VERSION} AS builder
+FROM node:24-alpine${ALPINE_VERSION} AS builder
219
WORKDIR /build-stage
220
COPY package*.json ./
221
RUN npm ci
@@ -240,5 +240,3 @@ COPY --from=builder /build-stage/dist ./dist
240
# Run with dumb-init to not start node with PID=1, since Node.js was not designed to run as PID 1
241
CMD ["dumb-init", "node", "dist/index.js"]
242
```
243
-
244
0 commit comments