Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
metalmatze committed Jan 29, 2019
2 parents 4109f99 + 5d1c2ab commit f7b3d8e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 7 deletions.
21 changes: 14 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
FROM golang:1.11-alpine AS build
RUN apk add --update make
FROM registry.svc.ci.openshift.org/openshift/release:golang-1.10 AS builder
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
RUN make build && \
cp _output/linux/$(go env GOARCH)/kube-rbac-proxy _output/kube-rbac-proxy

FROM alpine:3.8
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"]
FROM registry.svc.ci.openshift.org/openshift/origin-v4.0:base
LABEL io.k8s.display-name="kube-rbac-proxy" \
io.k8s.description="This is a proxy, that can perform Kubernetes RBAC authorization." \
io.openshift.tags="kubernetes" \
maintainer="Frederic Branczyk <fbranczy@redhat.com>"

ARG FROM_DIRECTORY=/go/src/github.com/brancz/kube-rbac-proxy
COPY --from=builder ${FROM_DIRECTORY}/_output/kube-rbac-proxy /usr/bin/kube-rbac-proxy

USER nobody
EXPOSE 8080
ENTRYPOINT ["/usr/bin/kube-rbac-proxy"]
15 changes: 15 additions & 0 deletions OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
reviewers:
- brancz
- mxinden
- elad661
- ironcladlou
- squat
- s-urbaniak

approvers:
- brancz
- mxinden
- elad661
- ironcladlou
- squat
- s-urbaniak

0 comments on commit f7b3d8e

Please sign in to comment.