While working on a project recently, I had to containerize a NodeJs Windows application. I was surprised to find that there was no single official image for the NodeJs Windows container on Docker Hub so I decided to create one. This process inspired me to put together a step by step guide on how to build a lightweight NodeJs Windows container using the Windows Nano Server. Please note that we chose to create this for a Windows Nano Server due to its optimized small size.
Create a folder labeled “docker-nodejs” on your hard disk.
Download the NodeJs ZIP (x64) package from the list of available versions on the following web-page:
For this example, I have chosen version v14.9.0
Once the file has been downloaded, extract the content of the zip file into a folder. Rename the extracted folder “nodejs”. Move the nodejs folder inside the folder “docker-nodejs” (created in the first step).
#nodejs #docker #nano-server #nodejs-container #windows-containers