Skip to content

Commit

Permalink
Merge pull request #100 from UKHomeOffice/static_compile
Browse files Browse the repository at this point in the history
Statically compile for Dockerfile
  • Loading branch information
lewismarshall committed Jul 23, 2018
2 parents c5229c6 + ede5f8d commit a5b4829
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ build:
release: clean deps release-deps
@echo "--> Compiling all the static binaries"
mkdir -p bin
gox -arch="${ARCHITECTURES}" -os="${PLATFORMS}" -ldflags "-w ${LFLAGS}" -output=./bin/{{.Dir}}_{{.OS}}_{{.Arch}} ./...
cd ./bin && shasum * > checksum.txt && cd -
CGO_ENABLED=0 gox -arch="${ARCHITECTURES}" -os="${PLATFORMS}" -ldflags "-w ${LFLAGS}" -output=./bin/{{.Dir}}_{{.OS}}_{{.Arch}} ./...
cd ./bin && sha256sum * > checksum.txt && cd -

clean:
rm -rf ./bin 2>/dev/null
Expand Down

0 comments on commit a5b4829

Please sign in to comment.