diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 1ad2e0902eb4a61d945da3384aa762e4a61e8899..5b26af995816feeed694de06c5f213ff47cc617b 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -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": {}, diff --git a/Dockerfile b/Dockerfile index ffec6956c4ad52074d295abee8eca3ff31b3c8b9..d0e846a74066526ff8b49c60c22133b1be213c4c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # --------------> 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 @@ -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