allow building on non docker environment
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
parent
f04cb2ddd7
commit
73d42c5857
2
Makefile
2
Makefile
|
|
@ -7,7 +7,7 @@ ifdef GOTOOLCHAIN
|
|||
else
|
||||
GO_VERSION=$(shell go mod edit -json | jq -r .Toolchain | sed -e 's/go//')
|
||||
endif
|
||||
DOCKER_BUILD_IMAGE=gotify/build
|
||||
DOCKER_BUILD_IMAGE=docker.io/gotify/build
|
||||
DOCKER_WORKDIR=/proj
|
||||
DOCKER_RUN=docker run --rm -e LD_FLAGS="$$LD_FLAGS" -v "$$PWD/.:${DOCKER_WORKDIR}" -v "`go env GOPATH`/pkg/mod/.:/go/pkg/mod:ro" -w ${DOCKER_WORKDIR}
|
||||
DOCKER_GO_BUILD=go build -mod=readonly -a -installsuffix cgo -ldflags "$$LD_FLAGS"
|
||||
|
|
|
|||
Loading…
Reference in New Issue