I have a dockerfile where I am using alpine-nodejs version 16 as the base image. The npm version is 8.
When the step of npm install --production is executed while doing docker build, it is also installing dependencies listed under dev-dependencies of package.json, contrary to the use-case of production flag.
I also used npm install --only=production but that also doesn't seem to work.
With alpine nodejs version 14, the flag is working as expected and dev-dependencies are not getting installed in container. Is there any issue with alpine node version 16 image? Thanks.