-
Notifications
You must be signed in to change notification settings - Fork 7
chore: reduce COPY's and wget's #814
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: main
Are you sure you want to change the base?
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
This PR simplifies the Dockerfile by replacing many COPY and wget instructions with bind mounts and ADD instructions to reduce image layers and residual files while adding checksum verifications.
- Replaces unnecessary COPY instructions with bind mounts.
- Replaces wget invocations for certificate retrieval with an ADD instruction using a checksum.
- Updates cleanup commands to target apt cache directories consistently.
📦 Container Size AnalysisComparing 📈 Size Comparison Table
|
Test Results 4 files ±0 4 suites ±0 1m 16s ⏱️ - 1m 12s For more details on these failures, see this check. Results for commit f761eb4. ± Comparison against base commit e21c90e. ♻️ This comment has been updated with latest results. |
🦙 MegaLinter status: ❌ ERROR
See detailed report in MegaLinter reports |
📦 Container Size AnalysisComparing 📈 Size Comparison Table
|
ADD --checksum=sha256:5e131007fad7c5f30d2f41090b49937fb8f16a787e5a95b4b3140e88d174dab2 \ | ||
https://github.com/Jake-Shadle/xwin/releases/download/${XWIN_VERSION}/xwin-${XWIN_VERSION}-aarch64-unknown-linux-musl.tar.gz /xwin.tar.gz | ||
|
||
FROM downloader-$TARGETARCH AS downloader |
Check warning
Code scanning / Trivy (MegaLinter REPOSITORY_TRIVY)
':latest' tag used Medium
Type: dockerfile
Vulnerability DS001
Severity: MEDIUM
Message: Specify a tag in the 'FROM' statement for image 'downloader-'
Link: DS001
ARG DOCKER_VERSION | ||
ARG XWIN_VERSION | ||
ADD --checksum=sha256:53dc06dc3f775282ddff93b2d0974bbe6480761018c61e7a797342a9c7f14e23 \ | ||
https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz /docker.tgz |
Check failure
Code scanning / Hadolint (MegaLinter DOCKERFILE_HADOLINT)
invalid flag: --checksum Error
Signed-off-by: Ron <[email protected]>
Signed-off-by: Ron <[email protected]>
Signed-off-by: Ron <[email protected]>
Signed-off-by: Ron <[email protected]>
|
This pull request is marked stale because it has been open for an extended period with no activity. Remove the 'stale' label or comment otherwise this pull request will be closed in 7 days. |
🚀 Hey, I have created a Pull Request
Description of changes
This PR tries to replace all unnecessary COPY instructions with bind mounts, and all unnecessary wget invocations with ADD instructions. The intent is to reduce the number of layers and reduce any form of residue in the final image.
In the process add more checksums.
✔️ Checklist