fix: dockerfile
parent
83eabd301d
commit
f7434d3cdb
|
@ -5,7 +5,6 @@ WORKDIR /app
|
|||
COPY . .
|
||||
|
||||
RUN apk add git
|
||||
RUN go mod download
|
||||
|
||||
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 .
|
||||
|
|
Loading…
Reference in New Issue