Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pmundt committed Apr 10, 2020
1 parent 397d998 commit e55a375
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM golang as builder

ARG KUBECONFIG

ENV GO111MODULE=on

WORKDIR /app

COPY go.mod .
COPY go.sum .

RUN go mod download

COPY . .

RUN CGO_ENABLED=0 GOOS=linux go build

FROM scratch
COPY --from=builder /app/k8s-dt-node-labeller /app/

ENTRYPOINT [ "/app/k8s-dt-node-labeller" ]

0 comments on commit e55a375

Please sign in to comment.