have a "build" stage in the production Dockerfile which would derive from build image we have
"build" the application and then copy stuff over to "production" stage which will derive from a totally clean debian/alpine image with just basic minimum stuff.