Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

The distribution Dockerfiles are larger than they need to be #3666

Closed
nicknezis opened this issue Jan 20, 2021 · 0 comments · Fixed by #3669
Closed

The distribution Dockerfiles are larger than they need to be #3666

nicknezis opened this issue Jan 20, 2021 · 0 comments · Fixed by #3669
Assignees
Labels

Comments

@nicknezis
Copy link
Contributor

Is your feature request related to a problem? Please describe.
The distribution Docker builds add install artifacts for Heron and Zookeeper. The files are deleted in later layers, but the size of the resulting image is still large. The user can use --squash to compress the layers and reclaim the size, but if we used multi-stage Docker builds, we could automatically make the images smaller.

Describe the solution you'd like
Use Docker multi-stage builds to install components in a base stage, and then copy over the resulting artifacts into the later stage.

Describe alternatives you've considered
Docker --squash which helps if the Docker user has the experimental feature enabled. This loses layer information.

@nicknezis nicknezis self-assigned this Jan 20, 2021
@nicknezis nicknezis changed the title The distribution Dockerfiles should use multi-stage builds to cut down on the final image size The distribution Dockerfiles are larger than they need to be Jan 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant