debian-mirror-gitlab/vendor/Dockerfile/Golang.Dockerfile
2021-01-03 14:25:43 +05:30

14 lines
206 B
Docker

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