Skip to content
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

Enhance Dockerfile adding multistage build #47

Merged

Conversation

sergioasantiago
Copy link
Contributor

No description provided.

@ribbybibby
Copy link
Contributor

ribbybibby commented Feb 1, 2023

Thanks for the PR!

The Dockerfile is designed to work with goreleaser which we use to produce our releases. This is why it copies the binary into the container.

That being said, I do think it is valuable to have a Dockerfile that you can build with docker build when testing. So perhaps, in addition to the changes in this PR, we should rename the current Dockerfile to Dockerfile.goreleaser and modify goreleaser to use that.

Dockerfile Outdated Show resolved Hide resolved
Copy link
Contributor

@ribbybibby ribbybibby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment about the base image. And, as mentioned, we should use the existing Dockerfile with goreleaser.

@sergioasantiago sergioasantiago force-pushed the sergioasantiago/enhance_dockerfile branch from 9fcb619 to 61f5ad6 Compare February 2, 2023 10:12
@jetstack-bot jetstack-bot added size/M and removed size/S labels Feb 2, 2023
@sergioasantiago sergioasantiago force-pushed the sergioasantiago/enhance_dockerfile branch from 61f5ad6 to 24f8da7 Compare February 2, 2023 10:15
@sergioasantiago
Copy link
Contributor Author

One comment about the base image. And, as mentioned, we should use the existing Dockerfile with goreleaser.

Thanks for your comment, Changes have been made.

@ribbybibby ribbybibby merged commit a57a990 into jetstack:main Feb 6, 2023
@sergioasantiago sergioasantiago deleted the sergioasantiago/enhance_dockerfile branch February 6, 2023 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants