Skip to content

Commit

Permalink
fix: disable CGO on docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
thoas committed Feb 5, 2024
1 parent 733c46e commit 6cc0c08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ build-static:
-X 'github.com/thoas/picfit/constants.LatestCommitMessage=$(commitMessage)' \
-X 'github.com/thoas/picfit/constants.Compiler=$(compiler)'" -a -installsuffix cgo -o $(BIN_DIR)/picfit ./cmd/picfit/main.go

docker-build-static: build-static
docker-build-static:
CGO_ENABLED=0 make build-static


.PNONY: all test format
Expand Down

0 comments on commit 6cc0c08

Please sign in to comment.