diff --git a/Makefile b/Makefile index ce59823..ac3fc90 100644 --- a/Makefile +++ b/Makefile @@ -109,14 +109,12 @@ release-check: cd $(DIST)/release; $(foreach file,$(wildcard $(DIST)/release/$(EXECUTABLE)-*),sha256sum $(notdir $(file)) > $(notdir $(file)).sha256;) # for docker. -static_build: +docker_build: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 $(GO) build -a -tags '$(TAGS)' -ldflags '$(EXTLDFLAGS)-s -w $(LDFLAGS)' -o $(DEPLOY_IMAGE) docker_image: docker build -t $(DEPLOY_ACCOUNT)/$(DEPLOY_IMAGE) . -docker: static_build docker_image - docker_deploy: ifeq ($(tag),) @echo "Usage: make $@ tag="