-
Notifications
You must be signed in to change notification settings - Fork 7
chore: image build improvements #833
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
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.
Pull Request Overview
The PR removes unnecessary COPY statements by replacing them with bind mounts in the Dockerfiles to streamline file management during the build process.
- Updated the Rust Dockerfile to use a bind mount for the apt requirements file and cleaned up redundant environment variable declarations.
- Updated the C++ Dockerfile to use bind mounts for both apt requirements and Python requirements, along with the clang apt requirements file.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| .devcontainer/rust/Dockerfile | Replaces copy statements with bind mount; fixes redundant ENV usage and an incorrect file path. |
| .devcontainer/cpp/Dockerfile | Replaces copy statements with bind mount for apt and pip requirements and clang configuration. |
🦙 MegaLinter status:
|
| Descriptor | Linter | Files | Fixed | Errors | Warnings | Elapsed time |
|---|---|---|---|---|---|---|
| ✅ ACTION | actionlint | 18 | 0 | 0 | 0.49s | |
| ✅ DOCKERFILE | hadolint | 2 | 0 | 0 | 0.85s | |
| ✅ GHERKIN | gherkin-lint | 2 | 0 | 0 | 0.94s | |
| ✅ JSON | npm-package-json-lint | yes | no | no | 0.43s | |
| ✅ JSON | prettier | 16 | 1 | 0 | 0 | 0.57s |
| ✅ JSON | v8r | 16 | 0 | 0 | 7.54s | |
| ✅ MARKDOWN | markdownlint | 9 | 0 | 0 | 0 | 0.95s |
| ✅ MARKDOWN | markdown-table-formatter | 9 | 0 | 0 | 0 | 0.26s |
| ✅ REPOSITORY | checkov | yes | no | no | 17.02s | |
| ✅ REPOSITORY | gitleaks | yes | no | no | 0.41s | |
| ✅ REPOSITORY | git_diff | yes | no | no | 0.01s | |
| grype | yes | no | 2 | 23.23s | ||
| ✅ REPOSITORY | secretlint | yes | no | no | 0.94s | |
| ✅ REPOSITORY | syft | yes | no | no | 1.86s | |
| ✅ REPOSITORY | trivy | yes | no | no | 6.83s | |
| ✅ REPOSITORY | trivy-sbom | yes | no | no | 0.26s | |
| ✅ REPOSITORY | trufflehog | yes | no | no | 3.65s | |
| ✅ SPELL | lychee | 63 | 0 | 0 | 1.9s | |
| ✅ YAML | prettier | 24 | 0 | 0 | 0 | 0.94s |
| ✅ YAML | v8r | 24 | 0 | 0 | 6.66s | |
| ✅ YAML | yamllint | 24 | 0 | 0 | 0.82s |
See detailed report in MegaLinter reports
📦 Container Size AnalysisComparing 📈 Size Comparison Table
|
📦 Container Size AnalysisComparing 📈 Size Comparison Table
|
Don't source /etc/os-release but grep the value we want from it
|
Pull Request Report (#833)Static measures
Time related measures
Status check related measures
|
|
🎉 Hooray! The changes in this pull request went live with the release of v6.2.0 🎉 |




🚀 Hey, I have created a Pull Request
Description of changes
This PR contains a couple of (minor) image build improvements:
✔️ Checklist