Skip to content

Commit

Permalink
Update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Francisco Souza committed Sep 19, 2018
1 parent 18107aa commit 6f11490
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bin/build
Expand Up @@ -13,14 +13,13 @@ export GOTMP=/tmp/video-transcoding-api-$RANDOM
export OUTPUT=$GOTMP/output

# Copy the current directory into the GOPATH
export CODE=$GOTMP/src/github.com/NYTimes/video-transcoding-api
export CODE=$GOTMP/code
mkdir -p $CODE
cp -R . $CODE
export GOPATH=$GOTMP

# Download dependencies and build
pushd $CODE
GOARCH=amd64 GOOS=linux go build -o $OUTPUT/video-transcoding-api
GOARCH=amd64 GOOS=linux CGO_ENABLED=0 go build -o $OUTPUT/video-transcoding-api
cp swagger.json $OUTPUT/.
popd

Expand Down

0 comments on commit 6f11490

Please sign in to comment.