Skip to content

Commit

Permalink
fix: sqlite build issue in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
forcodedancing committed Jan 9, 2024
1 parent ea0fdf6 commit 0ac58fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ PACKAGES=$(shell go list ./dao ./service ./monitor/.)

build_monitor:
ifeq ($(OS),Windows_NT)
go build $(BUILD_FLAGS) -o build/monitor.exe cmd/mind-marketplace-monitor/main.go
CGO_CFLAGS="-D_LARGEFILE64_SOURCE" go build $(BUILD_FLAGS) -o build/monitor.exe cmd/mind-marketplace-monitor/main.go
else
go build $(BUILD_FLAGS) -o build/monitor cmd/mind-marketplace-monitor/main.go
CGO_CFLAGS="-D_LARGEFILE64_SOURCE" go build $(BUILD_FLAGS) -o build/monitor cmd/mind-marketplace-monitor/main.go
endif

#build_monitor_docker:
# docker build --build-arg GITHUB_TOKEN=${GITHUB_TOKEN} -f monitor.dockerfile -t monitor .

build_server:
ifeq ($(OS),Windows_NT)
go build $(BUILD_FLAGS) -o build/server.exe cmd/mind-marketplace-server/main.go
CGO_CFLAGS="-D_LARGEFILE64_SOURCE" go build $(BUILD_FLAGS) -o build/server.exe cmd/mind-marketplace-server/main.go
else
go build $(BUILD_FLAGS) -o build/server cmd/mind-marketplace-server/main.go
CGO_CFLAGS="-D_LARGEFILE64_SOURCE" go build $(BUILD_FLAGS) -o build/server cmd/mind-marketplace-server/main.go
endif

#build_server_docker:
Expand Down

0 comments on commit 0ac58fd

Please sign in to comment.