build: add Dockerfile

main
hau 2020-11-11 00:51:13 +07:00
parent 5095266280
commit 26f7a76455
1 changed files with 18 additions and 0 deletions

18
Dockerfile Normal file
View File

@ -0,0 +1,18 @@
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"]