For: https://twitter.com/papanberjalan/status/1777611772813300055
- Bundle the JS app
yarn build
- Build the docker image
docker build -t no-modules-express .
- Start a container with the image
docker run -p 3000:3000 no-modules-express
-
Verify
localhost:3000
returns"Hello world!"
-
Verify container does not include
/usr/src/app/node_modules