summaryrefslogtreecommitdiff
path: root/vendor/Dockerfile/Golang.Dockerfile
blob: bef0fdce06547f99cc7fe593919f3465f59a7a1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM golang:1.15 AS builder

WORKDIR /usr/src/app

COPY . .
RUN go-wrapper download
RUN go build -v

FROM buildpack-deps:buster

WORKDIR /usr/local/bin

COPY --from=builder /usr/src/app/app .
CMD ["./app"]