Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tags: tailot/forgeidea

Tags

0.5.6

Toggle 0.5.6's commit message
Configuration mcp

0.4.7

Toggle 0.4.7's commit message
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.