This project brings Node.js (version 4 to 25; argon to krypton) on Microsoft Windows Nano Server base image.
Note: Version 5 is not available due to unavailability of the upstream.
latest2525-ltsc2025krypton2424-ltsc2025jodjod-ltsc20252222-ltsc2025ironiron-ltsc20252020-ltsc2025hydrogenhydrogen-ltsc20251818-ltsc2025galliumgallium-ltsc20251616-ltsc2025fermiumfermium-ltsc20251414-ltsc2025erbiumerbium-ltsc20251212-ltsc2025dubniumdubnium-ltsc20251010-ltsc2025carboncarbon-ltsc202588-ltsc2025boronboron-ltsc202566-ltsc2025argonargon-ltsc202544-ltsc2025
Full 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 ghcr.io/amitie10g/node-nanoserver:krypton
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/amitie10g/node-nanoserver
Containers for this project has been built using GitHub Actions for automated weekly builds from 4 to 24 under Windows Nano Server ltsc2025, ltsc2022 and ltsc2019. If you need other versions of Windows, follow this instructions.
docker build -t <tag> --build-arg NODE_VER=<node version> --build-arg BASE_IMG=<base image> --build-arg CONT_VER=<container version> .
Where,
NODE_VERis used to download Node fromhttps://nodejs.org/dist/v${NODE_VER}/node-v${NODE_VER}-win-x64.zipBASE_IMGis the base image, eitherwindows/nanoserverorpowershellCONT_VERis 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).
- Everything in this repo is released into the Public domain (the Unlicense)
- Node.js is licensed under the MIT License.
- Microsoft Windows container images usage is subjected to the Microsoft EULA
- Microsoft PowerShell is licensed under the MIT License.