Skip to content

Conversation

@tailot
Copy link
Owner

@tailot tailot commented Jun 13, 2025

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.

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.
@tailot tailot merged commit d83f92b into main Jun 13, 2025
1 check passed
@tailot tailot deleted the feature/multistage-dockerfiles branch June 13, 2025 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants