refactor(docker): modernize Dockerfile.debian with build optimizations#4398
refactor(docker): modernize Dockerfile.debian with build optimizations#4398spnngl wants to merge 1 commit intocrowdsecurity:masterfrom
Conversation
- Add BuildKit syntax directive and SHELL for proper error handling - Upgrade base images from bookworm to trixie - Add cache mounts for apt, re2, go modules, and go build (arch-specific) - Split go mod download from build for better layer caching - Use heredoc syntax for cleaner multi-line RUN commands - Add apt-get upgrade for security patches in runtime image - Use --no-install-recommends consistently to reduce image size - Set CGO_ENABLED=1 with PKG_CONFIG_PATH/LD_LIBRARY_PATH for re2 - Add proper error handling with || exit 1 and subshells
|
@spnngl: There are no 'kind' label on this PR. You need a 'kind' label to generate the release automatically.
DetailsI am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository. |
|
@spnngl: There are no area labels on this PR. You can add as many areas as you see fit.
DetailsI am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository. |
|
/kind enhancement |
|
@blotus Could I have a review please ? 🙏 |
Uh oh!
There was an error while loading. Please reload this page.