From 25bbfaa9dc7a56e7df27bfe8e42a772286ffff74 Mon Sep 17 00:00:00 2001 From: Emile Date: Thu, 30 Apr 2020 20:05:27 +0200 Subject: super simple minimal setup --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a66e4fc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM golang:1.14 as build-env + +WORKDIR /go/src/app +ADD . /go/src/app + +ENV PATH="$GOPATH/bin:$PATH" +ENV GOBIN="$GOPATH/bin" +RUN go env + + +RUN go get -d -v ./... +RUN go build -o /go/bin/faila2 ./... + +FROM gcr.io/distroless/base +COPY --from=build-env /go/bin/faila2 / + +ENTRYPOINT ["/faila2"] \ No newline at end of file -- cgit 1.4.1