fix: dockerfile
parent
83eabd301d
commit
f7434d3cdb
|
@ -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 .
|
||||||
|
|
Loading…
Reference in New Issue