Hello everyone, recently I try to make small docker image that can run in production.
I make multi stage build in my Dockerfile and have this result:
REPOSITORY TAG IMAGE ID CREATED SIZE
nestjs-mikro-orm-dev 1.0 045c3154eb3b 18 seconds ago 331MB
nestjs-mikro-orm-production 1.0 3d1bc1abbeb8 2 hours ago 222MB
node 22.12-alpine 10d483552d27 2 weeks ago 157MB
node 20.15-alpine 3ef52eda8a70 5 months ago 133MB
mysql 8.0 0b60ddd8609d 5 months ago 572MB
nginx latest fffffc90d343 6 months ago 188MB
mariadb 10.5 8d27db214bfa 6 months ago 394MB
node 21-alpine cad63adc9266 6 months ago 139MB
postgres 13 483aeb0a0bb9 7 months ago 419MB
nestjs-mikro-orm-dev is just images with devDependencies installed on the image, while nestjs-mikro-orm-production using npm install --only=production to install the package.
question: to have about >= 200mb image size for production is normal thing?
thank you.