From 7953bf948a4032d86f8355bcae44388e61c8ab7f Mon Sep 17 00:00:00 2001 From: Malte Muench Date: Fri, 24 Jul 2020 22:50:37 +0200 Subject: [PATCH] dockerfile geadded --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..90b4957 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM golang:1.14 as build-env + +WORKDIR /go/src/app +ADD . /go/src/app + +RUN go get -d -v ./... + +RUN go build -o /go/bin/app + +FROM gcr.io/distroless/base +COPY --from=build-env /go/bin/app / +CMD ["/app"] +EXPOSE 8080