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

Pre-install all Node.JS dependencies to make image smaller/faster #2148

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

Conversation

benoit74
Copy link
Contributor

@benoit74 benoit74 commented Jan 30, 2025

Since Node.JS dependencies rarely need to be changed during successive builds of the Docker image, it is way better to first install only dependencies without mwoffliner code, and then install mwoffliner itself. Any change to the codebase will hence only update few things without having to re-download again all dependencies.

Edit: to be merged to main once #2143 is merged

Since Node.JS dependencies rarely need to be changed during successive
builds of the Docker image, it is way better to first install only
dependencies without mwoffliner code, and then install mwoffliner
itself. Any change to the codebase will hence only update few things
without having to re-download again all dependencies.
@benoit74 benoit74 added this to the 1.14.1 milestone Jan 30, 2025
@benoit74 benoit74 requested a review from kelson42 January 30, 2025 15:00
@benoit74 benoit74 self-assigned this Jan 30, 2025
Copy link

codecov bot commented Jan 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.63%. Comparing base (88bbeec) to head (5e79ba0).

Additional details and impacted files
@@                  Coverage Diff                  @@
##           images_processing    #2148      +/-   ##
=====================================================
+ Coverage              75.19%   75.63%   +0.43%     
=====================================================
  Files                     41       41              
  Lines                   3213     3213              
  Branches                 704      704              
=====================================================
+ Hits                    2416     2430      +14     
+ Misses                   676      666      -10     
+ Partials                 121      117       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kelson42
Copy link
Collaborator

@benoit74 Great PR. I will test it this WE, but I would really appreciate @audiodude expertise in the review work.

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