-
Notifications
You must be signed in to change notification settings - Fork 1.6k
🐛 (go/v4): Fix Docker builds failing when projects don’t include apis/, controllers/, or webhooks by updating .dockerignore to allow only Go source files and module metadata #5048
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
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86 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 |
f493b5d to
e2b6791
Compare
| # More info: https://docs.docker.com/engine/reference/builder/#dockerignore-file | ||
| # Ignore build and test binaries. | ||
| bin/ | ||
| # Ignore everything |
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.
Maybe adjust the comment here from # Ignore everything to something like # Ignore everything by default, re-include only needed files to better reflect what the file is doing.
aman4433
left a comment
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.
Overall this looks solid and fixes the bug as intended. 👍
e2b6791 to
ae92a12
Compare
…ontrollers/, or webhooks by updating .dockerignore to allow only Go source files and module metadata The make docker-build command no longer fails for new projects that don't yet have api/ or internal/ directories. What changed: - The Dockerfile now uses a general COPY . . command. - The .dockerignore file has been updated to filter the build context, ensuring only necessary files are included.
ae92a12 to
c2e1e09
Compare
|
LGTM |
Closes: #5046