Skip to content

Commit

Permalink
Force all binaries to be static
Browse files Browse the repository at this point in the history
This is so that the binaries will work on Alpine (which uses musl as its
libc) or Scratch.
  • Loading branch information
docwhat committed Jul 15, 2016
1 parent 83845ce commit 84aa222
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ end

desc 'Cross builds the executables'
task :xbuild do
sh 'gox -os="linux darwin" -arch="amd64 ppc64le" ./...'
sh 'CGO_ENABLED=0 gox -os="linux darwin" -arch="amd64 ppc64le" ./...'
sh 'file docker-gc_*' # to check they are all static
end

desc 'Cleans up executables'
Expand Down

0 comments on commit 84aa222

Please sign in to comment.