debian-mirror-gitlab/vendor/Dockerfile/Golang.Dockerfile

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
206 B
Text
Raw Normal View History

2021-01-03 14:25:43 +05:30
FROM golang:1.15 AS builder
2017-09-10 17:25:29 +05:30
WORKDIR /usr/src/app
COPY . .
RUN go-wrapper download
RUN go build -v
2020-11-24 15:15:51 +05:30
FROM buildpack-deps:buster
2017-09-10 17:25:29 +05:30
WORKDIR /usr/local/bin
COPY --from=builder /usr/src/app/app .
CMD ["./app"]