fix: dockerfile

pull/7/head
sundowndev 2021-07-07 16:28:28 +02:00
parent 83eabd301d
commit f7434d3cdb
1 changed files with 0 additions and 1 deletions

View File

@ -5,7 +5,6 @@ WORKDIR /app
COPY . . COPY . .
RUN apk add git RUN apk add git
RUN go mod download
RUN VERSION=$(git describe --exact-match 2>/dev/null || git rev-parse --short HEAD) RUN VERSION=$(git describe --exact-match 2>/dev/null || git rev-parse --short HEAD)
RUN go build -ldflags="-X github.com/sundowndev/goreleaser-template/version.Version=${VERSION}" -v -o myproject . RUN go build -ldflags="-X github.com/sundowndev/goreleaser-template/version.Version=${VERSION}" -v -o myproject .