gitlab-org--gitlab-foss/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

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"]