Skip to content

Commit

Permalink
Try to use netgo,osusergo,static for static builds
Browse files Browse the repository at this point in the history
Signed-off-by: Vasyl Gello <[email protected]>
  • Loading branch information
basilgello committed Jul 25, 2024
1 parent 9da8846 commit 1eb9a94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ do
r) ARGS="$ARGS -race";;
o) ARGS="$ARGS -o $OPTARG";;
p) ARGS="$ARGS -buildmode=pie";;
s) ARGS="$ARGS -tags netgo,osusersgo,static" LDFLAGS="$LDFLAGS -extldflags '-static'";;
esac
done

Expand Down

0 comments on commit 1eb9a94

Please sign in to comment.