diff --git a/Dockerfile b/Dockerfile index fe6a447..dde8ead 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,12 @@ -FROM golang:1.12 as builder +FROM golang:1.15 as builder WORKDIR /project COPY main.go go.mod go.sum ./ COPY downloader ./downloader -ADD vendor ./vendor ADD version ./version # Production-ready build, without debug information specifically for linux -RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o=gitmoo-goog -mod=vendor . +RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o=gitmoo-goog . FROM alpine:3.12