fix docker build

This commit is contained in:
Pavel 2023-10-13 16:14:35 +03:00
parent 8a52c717dc
commit d8bb4b694e

View File

@ -6,7 +6,7 @@ SRC_DIR=$(ROOT_DIR)/cmd
BIN=$(ROOT_DIR)/wa-profile-api
GO_VERSION=$(shell go version | sed -e 's/go version //')
build: deps fmt swagger ## Build the app
build: swagger deps fmt ## Build the app
@echo "==> Building for prod with ${GO_VERSION}"
@cd $(SRC_DIR) && CGO_ENABLED=0 go build -buildvcs=false -tags=release -o $(BIN) .
@echo $(BIN)