Tags: tailot/forgeidea
Tags
Refactor Dockerfiles to use multi-stage builds This change modifies the Dockerfiles in `genkit` and `socket.io` to implement multi-stage builds. The first stage, named 'builder', is responsible for installing dependencies (including devDependencies like npm) and building the application. The second stage creates a lean production image by copying only the necessary artifacts (the `dist` folder and production `node_modules`) from the 'builder' stage. This approach significantly reduces the final image size and improves security by excluding npm and other development tools from the production environment.