-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from paulfantom/build-process-refactor
Build process refactor
- Loading branch information
Showing
4 changed files
with
62 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
_output/ | ||
manifest-tool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,7 @@ | ||
FROM golang:1.13-alpine AS build | ||
ENV GOFLAGS="-mod=vendor" | ||
RUN apk add --update make && apk add --no-cache git | ||
WORKDIR /go/src/github.com/brancz/kube-rbac-proxy | ||
COPY . . | ||
RUN make build && cp /go/src/github.com/brancz/kube-rbac-proxy/_output/linux/$(go env GOARCH)/kube-rbac-proxy /usr/local/bin | ||
FROM gcr.io/distroless/static | ||
|
||
ARG BINARY=kube-rbac-proxy-linux-amd64 | ||
COPY _output/$BINARY /usr/local/bin/kube-rbac-proxy | ||
|
||
FROM alpine:3.11 | ||
RUN apk add -U --no-cache ca-certificates && rm -rf /var/cache/apk/* | ||
COPY --from=build /usr/local/bin/kube-rbac-proxy . | ||
ENTRYPOINT ["./kube-rbac-proxy"] | ||
EXPOSE 8080 | ||
ENTRYPOINT ["/usr/local/bin/kube-rbac-proxy"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters