Loading .devcontainer/devcontainer.json +1 −1 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ { "name": "Node.js", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile "image": "mcr.microsoft.com/devcontainers/javascript-node:0-18", "image": "mcr.microsoft.com/devcontainers/javascript-node:0-20", // Features to add to the dev container. More info: https://containers.dev/features. // "features": {}, Loading Dockerfile +2 −2 Original line number Diff line number Diff line # --------------> The build image FROM node:18.12.1 AS build FROM node:20.10.0 AS build RUN apt-get update && apt-get install -y --no-install-recommends dumb-init ARG NPM_TOKEN WORKDIR /usr/src/app Loading @@ -9,7 +9,7 @@ RUN echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc && \ rm -f .npmrc # --------------> The production image FROM node:18.12.1-slim FROM node:20.10.0-slim ENV NODE_ENV production COPY --from=build /usr/bin/dumb-init /usr/bin/dumb-init USER node Loading Loading
.devcontainer/devcontainer.json +1 −1 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ { "name": "Node.js", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile "image": "mcr.microsoft.com/devcontainers/javascript-node:0-18", "image": "mcr.microsoft.com/devcontainers/javascript-node:0-20", // Features to add to the dev container. More info: https://containers.dev/features. // "features": {}, Loading
Dockerfile +2 −2 Original line number Diff line number Diff line # --------------> The build image FROM node:18.12.1 AS build FROM node:20.10.0 AS build RUN apt-get update && apt-get install -y --no-install-recommends dumb-init ARG NPM_TOKEN WORKDIR /usr/src/app Loading @@ -9,7 +9,7 @@ RUN echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc && \ rm -f .npmrc # --------------> The production image FROM node:18.12.1-slim FROM node:20.10.0-slim ENV NODE_ENV production COPY --from=build /usr/bin/dumb-init /usr/bin/dumb-init USER node Loading