From 8571e4c99cedcad060a7f510e342c22c59c9aa2d Mon Sep 17 00:00:00 2001 From: RaviHari Date: Mon, 26 Jul 2021 16:54:40 +0530 Subject: [PATCH] Add Dockerfile --- Dockerfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..aa22014 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +# Build Stage +FROM golang:1.13-alpine AS builder + +LABEL REPO="https://github.com/keikoproj/manny" + +WORKDIR /go/src/github.com/keikoproj/manny +COPY . . + +RUN make build + +# Final Stage +FROM scratch + +ARG GIT_COMMIT +ARG VERSION +LABEL REPO="https://github.com/keikoproj/manny" +LABEL GIT_COMMIT=$GIT_COMMIT +LABEL VERSION=$VERSION + +COPY --from=builder /go/src/github.com/keikoproj/manny/bin/manny /bin/manny + +CMD ["/bin/manny", "--help"]