Npm install doesn't complete inside docker container

This is the Makefile based solution I’m using:

https://forums.docker.com/t/unable-to-perform-any-npm-install-inside-a-osxfs-mounted-directory/12590/13?u=davefinster

Thats for Alpine Linux (installing gcc and friends) but easily adjusted