We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b09928 commit a3212c6Copy full SHA for a3212c6
1 file changed
Dockerfile.build
@@ -40,5 +40,7 @@ ARG VERSION
40
WORKDIR /src
41
ENV CGO_ENABLED=1 PKG_CONFIG_PATH="/build/vcpkg_installed/$TRIPLET/lib/pkgconfig" CC="$GOCC" \
42
GOARCH="$GOARCH" GOAMD64="$GOAMD64" GOARM="$GOARM" \
43
- GOCACHE=/src/.gocache/go-build GOMODCACHE=/src/.gocache/mod
44
-CMD ["go", "build", "-o", "./go-librespot", "-a", "-ldflags", "-s -w -X github.com/devgianlu/go-librespot.version=$VERSION", "./cmd/daemon"]
+ GOCACHE=/src/.gocache/go-build GOMODCACHE=/src/.gocache/mod \
+ VERSION="$VERSION"
45
+
46
+CMD [ "/bin/sh", "-c", "go build -o ./go-librespot -a -ldflags \"-s -w -X github.com/devgianlu/go-librespot.version=$VERSION\" ./cmd/daemon" ]
0 commit comments