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

Implement multi stage docker build #26

Conversation

jonnylangefeld
Copy link
Contributor

this eliminates local build before docker build

fix #25

Signed-off-by: Jonny Langefeld jonny.langefeld@gmail.com

@salesforce-cla
Copy link

Thanks for the contribution! Before we can merge this, we need @jonnylangefeld to sign the Salesforce.com Contributor License Agreement.

Makefile Outdated
@@ -14,9 +14,7 @@ linux:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go install -ldflags "-s" -installsuffix cgo -v ./pkg/...

docker: linux
Copy link
Contributor

Choose a reason for hiding this comment

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

you should no longer need the dependency on the linux target right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that's right, I removed it

this eliminates local build before docker build

fix salesforce#25

Signed-off-by: Jonny Langefeld <jonny.langefeld@gmail.com>
Signed-off-by: Jonny Langefeld <jonny.langefeld@gmail.com>
@thomashargrove
Copy link
Contributor

Tested it locally and it works fine.

@thomashargrove thomashargrove merged commit 5d8bfea into salesforce:master Oct 10, 2019
@jonnylangefeld jonnylangefeld deleted the feature/multi-stage-docker-build branch October 10, 2019 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhance Dockerfile to use multi-stage builds
2 participants