diff options
author | Emile <hanemile@protonmail.com> | 2020-06-10 15:32:30 +0200 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2020-06-10 15:32:30 +0200 |
commit | 6d413cbe726af20253fa72add9e597f0f57f691b (patch) | |
tree | 70f894996a35b9b426dd5c353f3d2bc34c330b79 /Dockerfile | |
parent | d820006a814f808aaeae2e1bdff4ce4ef4605fa0 (diff) |
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1c9ddcd --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +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/reqlog main.go + +FROM gcr.io/distroless/base +COPY --from=build-env /go/bin/reqlog / +CMD ["/reqlog"] \ No newline at end of file |