Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging RUN instruction (reduced number of layers in image) #1330

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

akarys2304
Copy link

Each time a RUN instruction is added, a new layer is introduced into the final image.
This has a direct impact on build time and image size. Chaining commands into a single RUN statement using && will use a single layer, thus reducing the number of layers in the image.

Issue detected by SonarQube Cloud
On dockerfile

@YasharF
Copy link
Collaborator

YasharF commented Feb 21, 2025

Thank you. Since you are modifying the dockerfile, can you also change the image from 20-slim to 22-slim? The project now needs Node 22.12+ because of the need for require() ESM support.

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