Merge pull request #1091 from saschagrunert/osusergo

Use osusergo build tag for static build
This commit is contained in:
Daniel J Walsh
2020-11-12 15:49:46 -05:00
committed by GitHub

View File

@@ -44,7 +44,7 @@ let
export CFLAGS='-static'
export LDFLAGS='-s -w -static-libgcc -static'
export EXTRA_LDFLAGS='-s -w -linkmode external -extldflags "-static -lm"'
export BUILDTAGS='static netgo exclude_graphdriver_btrfs exclude_graphdriver_devicemapper'
export BUILDTAGS='static netgo osusergo exclude_graphdriver_btrfs exclude_graphdriver_devicemapper'
'';
buildPhase = ''
patchShebangs .