about summary refs log tree commit diff
path: root/Dockerfile
blob: 1c9ddcd2e752c76897908b5eaa63e05cc0daeb1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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"]