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

Heroku-24: Remove git from the run image #274

Merged
merged 1 commit into from
Mar 21, 2024
Merged

Commits on Mar 21, 2024

  1. Heroku-24: Remove git from the run image

    Since:
    - Most Git use-cases are for cloning dependencies during the build.
    - On Heroku at runtime there is no `.git/` metadata to query the
      local project's repo anyway (since the directory isn't preserved
      during the build).
    - It saves 17 MB, and in a CNB world image size is a much bigger
      concern, so we need to be more selective about what packages
      we include.
    - Once Heroku-24 GAs we can't remove packages (since it will break
      backwards compatibility given stack rebasing), however, we can add
      packages - so we should err on the side of removing packages now.
    
    Before:
    
    ```
    -----> Size breakdown...
           heroku/heroku:24         458MB
           heroku/heroku:24-build   1.13GB
    ```
    
    After:
    
    ```
    -----> Size breakdown...
           heroku/heroku:24         441MB
           heroku/heroku:24-build   1.13GB
    ```
    
    Towards #266.
    GUS-W-15159536.
    edmorley committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    75c7948 View commit details
    Browse the repository at this point in the history