-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Dockerfile: optimize layers #10103
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
base: master
Are you sure you want to change the base?
Dockerfile: optimize layers #10103
Conversation
ba4bd2f to
b718be6
Compare
| FROM gcr.io/distroless/cc-debian12 AS production | ||
| ARG RELEASE_VERSION | ||
| ENV FLUENT_BIT_VERSION=${RELEASE_VERSION} | ||
| EXPOSE 2020 |
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.
Moved up, as this is not likely to change, meaning the layer doesn't have to be rebuild,pushed,pulled.
b718be6 to
ab34957
Compare
|
Rebased on top of master branch and fixed following small mistake. |
ab34957 to
f60ed47
Compare
f60ed47 to
7319f03
Compare
|
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
Squashed some layers to reduce the amount of layers in the image. Also rearranged some layers to reduce the amount of layers that have to be rebuild. If one layer changes all layers after have to be updated. By moving the ones least likely to change first this means less layers have to be rebuild, pushed and pulled on new releases. Signed-off-by: Marco Franssen <[email protected]>
7319f03 to
e39e92e
Compare
|
I rebased the PR on latest main. Can someone please have a look at this one? @patrick-stephens what is holding back from getting this one merged? |
WalkthroughThe Dockerfile was refactored to consolidate build arguments, combine RUN instructions into single chained commands, expose port 2020 in the production stage, adjust library extraction flows, and expand the debug image environment with additional tools and libraries. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (5)📚 Learning: 2025-09-14T09:46:09.531ZApplied to files:
📚 Learning: 2025-08-31T12:46:11.940ZApplied to files:
📚 Learning: 2025-08-31T12:46:11.940ZApplied to files:
📚 Learning: 2025-09-08T11:21:33.975ZApplied to files:
📚 Learning: 2025-09-04T07:28:37.083ZApplied to files:
🔇 Additional comments (7)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Enter
[N/A]in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
ok-package-testlabel to test for all targets (requires maintainer to do).Documentation
Backporting
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.
Summary by CodeRabbit