fix: disable CGO in binary builds

This commit is contained in:
Stavros
2025-06-11 10:11:23 +03:00
parent e96a2bcaec
commit 523267e55b
4 changed files with 10 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ tmp_dir = "tmp"
[build]
pre_cmd = ["mkdir -p internal/assets/dist", "echo 'backend running' > internal/assets/dist/index.html"]
cmd = "go build -o ./tmp/tinyauth ."
cmd = "CGO_ENABLED=0 go build -o ./tmp/tinyauth ."
bin = "tmp/tinyauth"
include_ext = ["go"]
exclude_dir = ["internal/assets/dist"]