-
Notifications
You must be signed in to change notification settings - Fork 84
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
build image using multi-stage builds #70
Conversation
👍 |
@linki if you make a PR from a local branch then CDP will run on the PR :) |
Dockerfile
Outdated
WORKDIR /go/src/github.com/zalando-incubator/kube-ingress-aws-controller | ||
COPY . . | ||
RUN glide install --strip-vendor | ||
RUN make build.linux |
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.
I would also run make test
before the build.
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.
added
@mikkeloscar Thanks, don't know why I used a fork here. |
This uses Docker's new multi-stage dockerfiles to build.
It builds the binary inside a Docker containe and avoids cluttering the host machine with stuff. By using the new build stages this can conveniently be run with a simple
docekr build
.unrelated: I consistently change any reference to the project to
kube-ingress-aws-controller
.