changeloguru/Dockerfile

19 lines
271 B
Docker
Raw Normal View History

2020-11-10 17:51:13 +00:00
FROM golang:1.15-buster AS build
WORKDIR /go/src/changeloguru
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
RUN go build -o /go/bin/changeloguru
FROM gcr.io/distroless/base-debian10
COPY --from=build /go/bin/changeloguru /
ENTRYPOINT ["/changeloguru"]