This project brings Node.js (version 20 to 24) and VC redist package on Microsoft Windows Server Core base image. Based on https://github.com/amitie10g/node-nanoserver-docker project.
latest latest 24 24-ltsc2022jod jod-ltsc2022 22 22-ltsc2022iron iron-ltsc2022 20 20-ltsc2022Full list of tags avilable at both GitHub Container registry and Docker Hub Container registry.
This project is intended to be used as base image for other Node-based projects. An example Dockerfile:
FROM mlveggo/node-servercore-vcredist:jod-ltsc2019
COPY . C:\\Users\\ContainerUser\\app
RUN npm install --omit=dev
ENTRYPOINT ["npm", "start"]
If you need to install system-wide software, you need to set USER as ContainerAdministrator. Afterward, you need to change it back to ContinerUser.
If you want to use it within GitHub Actions, prefer the GitHub Container registry: ghcr.io/mlveggo/node-servercore-vcredist
Containers for this project has been built using GitHub Actions for automated quarterly builds from 20 to 24 under Windows Server Core ltsc2025, ltsc2022 and ltsc2019.
docker build -t <tag> --build-arg NODE_VER=<node version> --build-arg BASE_IMG=<base image> --build-arg CONT_VER=<container version> --build-arg VCREDIST_VER=<vcredist version> .
Where,
NODE_VER is used to download Node from https://nodejs.org/dist/v${NODE_VER}/node-v${NODE_VER}-win-x64.zipBASE_IMG is the base image, either windows/servercore or powershellCONT_VER is the tag available for each base image. For a full list of available tags, consult the respective page of the base images provided (links above).VCREDIST_VER is used to specify VC redist version https://aka.ms/vs/${VCREDIST_VER}/release/vc_redist.x64.exeContent type
Image
Digest
sha256:320a15b4b…
Size
1.8 GB
Last updated
11 months ago
docker pull mlveggo/node-servercore-vcredist:24.10.0-ltsc2019