Skip to content
Snippets Groups Projects
Commit 94a2785d authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

update node version

parent 96b9726e
No related branches found
No related tags found
No related merge requests found
......@@ -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": {},
......
# --------------> 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment