OCPBUGS-92032: Dockerfile: Copy only build-required files in builder stage#99
OCPBUGS-92032: Dockerfile: Copy only build-required files in builder stage#99Miciah wants to merge 1 commit into
Conversation
Replace the broad "COPY . ." instruction in the builder stage with targeted COPY instructions for only the files and directories that "make build" requires. This excludes documentation, CI configuration, and other files that are not needed for the build, reducing the amount of data copied into the builder image. This commit fixes OCPBUGS-92032. https://issues.redhat.com/browse/OCPBUGS-92032 * Dockerfile (builder stage): Replace "COPY . ." with specific COPY instructions for Makefile, go.mod, go.sum, .git/, cmd/, pkg/, and vendor/. Assisted-by: Chai Bot <chai-bot@redhat.com>
|
@Miciah: This pull request references Jira Issue OCPBUGS-92032, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
WalkthroughThe Dockerfile’s builder stage now copies selected build inputs explicitly instead of the full build context. The build command and final runtime stage remain unchanged. ChangesDockerfile builder stage update
🎯 2 (Simple) | ⏱️ ~5 minutes 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Miciah The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@Miciah: This pull request references Jira Issue OCPBUGS-92032, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@Miciah: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Replace the broad "COPY . ." instruction in the builder stage with targeted COPY instructions for only the files and directories that "make build" requires. This excludes documentation, CI configuration, and other files that are not needed for the build, reducing the amount of data copied into the builder image.
Summary by CodeRabbit