Skip to content

Commit

Permalink
Merge pull request nanobox-io#629 from nanobox-io/feature/alpine
Browse files Browse the repository at this point in the history
Disable cgo so binary will run on alpine
  • Loading branch information
glinton authored Dec 14, 2017
2 parents 23b7153 + 81fa7bb commit a85c8ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/env bash
set -e

# disable cgo for true static binaries (will work on alpine linux)
export CGO_ENABLED=0;

# vfor versioning
getCurrCommit() {
echo `git rev-parse --short HEAD | tr -d "[ \r\n\']"`
Expand Down

0 comments on commit a85c8ce

Please sign in to comment.