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

Optimize layers #6

Open
nigredo-tori opened this issue Feb 6, 2019 · 0 comments
Open

Optimize layers #6

nigredo-tori opened this issue Feb 6, 2019 · 0 comments

Comments

@nigredo-tori
Copy link

nigredo-tori commented Feb 6, 2019

Current Dockerfiles are split into separate steps.

  1. Install build dependencies.
  2. Build the engine.
  3. Enable the engine.
  4. Rebuild cURL.
  5. Clean up.

The problem is that each of these steps produces a separate layer - and the first one can take a lot of space. To give you an example, rkix/openssl-gost:alpine image is around 80MB, but if you try to docker save it, you get a 300MB file! This is 200MB of useless data that everyone has to download and keep on their hard drive.

An obvious solution would be to move the whole process into a single shell script - this way we get a single layer with no dead weight.

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

No branches or pull requests

1 participant