-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix(build): Update dockerfile to use cache busting and reduce image size #8652
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks okay to merge. Approving - (BUT please wait for the ubuntu repo issues to resolve before merging).
Some things to keep in mind (if we see issues):
- this would create one big layer
- separate layers is less load on the infrastructure
- so bundling into 1 layer could cause network contention
- also separate layers could help in faster image pulling, as other containers may share the same base layers.
@anurags92 could you check the size of this layer before merging this PR? It should be a reasonable size, probably <50MB |
Good points, I checked the individual image sizes and layers.
|
This confirms that layering works based on previous SHAs etc.
|
…ize (#8652) This PR fixes issue in building docker-images during CI and releases. It uses cache busting to ensure `apt-get update` is always run. It also reduces the image size by removing `/var/lib/apt/lists`
…ize (#8652) This PR fixes issue in building docker-images during CI and releases. It uses cache busting to ensure `apt-get update` is always run. It also reduces the image size by removing `/var/lib/apt/lists`
This PR fixes issue in building docker-images during CI and releases. It uses cache busting to ensure
apt-get update
is always run. It also reduces the image size by removing/var/lib/apt/lists
See:
RUN
in https://docs.docker.com/develop/develop-images/dockerfile_best-practices/