Hi Henrik! Thanks for your comment. If you want to slim down the process the nest idea is to use the node:alpine image which is ~5MB.
All official images come with npm or yarn preinstalled, so if you’d like to create an image without npm you’d have to use one of your own, which is not a recommended practice.
Also, if you use any compiled dependencies, they might not work inside the image if you compile them somewhere else.
It all depends on how advanced you are with Docker. This tutorial was meant for beginners — we didn’t want to throw them into the deep end at the very start.