Using gcr.io/distroless/nodejs20-debian12 image but node and npm commands not found
I’m trying to run my Node.js application using the gcr.io/distroless/nodejs20-debian12:debug
image. However, when I execute my application, I get the following error:
I am using the npx command in my docker-compose file, but it seems like node and npm are not installed in the container. Why are the node and npm commands not found in the gcr.io/distroless/nodejs20-debian12:debug image?
How can I run npx commands using a distroless Node.js image?