Among the apps in my Nx monorepo I have two NestJS APIs that I run in Docker. One problem I'm having is that the main.js that is compiled relies on the node_modules folder and the resulting containers are very large.
What is the suggested way to handle this and either bundle everything up or only install the dependencies that NestJS relies on?