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

Work out how to reduce the image size #4

Closed
jsierles opened this issue Feb 17, 2022 · 2 comments
Closed

Work out how to reduce the image size #4

jsierles opened this issue Feb 17, 2022 · 2 comments

Comments

@jsierles
Copy link
Contributor

jsierles commented Feb 17, 2022

The image produced by the current setup weighs 340MB. This isn't terrible for a typical Rails image, but could be a lot smaller based on what's visible in the image.

Using dive we see a large 245MB layer at the bottom. This layer contains the source code, rubygems, and the rubygems dependencies. This means that every code change will require pushing a 245MB layer. Let's see how we can improve this.

Here are tickets describing specific options to explore:

@jsierles
Copy link
Contributor Author

Here's relevant related issue covering just the pg gem issue: NixOS/nixpkgs#61580

@jsierles
Copy link
Contributor Author

jsierles commented Mar 9, 2022

We can open more specific tickets as needed for size optimization.

@jsierles jsierles closed this as completed Mar 9, 2022
@jsierles jsierles moved this to Done in Rails Nix Launcher Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

1 participant