From ccc413651d95f768c90d512a37f553ccab126ff4 Mon Sep 17 00:00:00 2001 From: Guilhem Lettron Date: Wed, 18 Apr 2018 17:34:58 +0200 Subject: [PATCH] Add a dockerfile --- Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a41fe20 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM golang:1.10-alpine AS build +COPY . /go/src/github.com/barpilot/node-labeler-operator/ +WORKDIR /go/src/github.com/barpilot/node-labeler-operator/ +RUN go build -o /bin/node-labeler-operator . + +FROM alpine:latest +RUN apk --no-cache add ca-certificates +COPY --from=build /bin/node-labeler-operator /bin/node-labeler-operator +ENTRYPOINT ["/bin/node-labeler-operator"]