File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ FROM golang:1.9-alpine3.6 AS development
22
33ENV PROJECT_PATH=/go/src/github.com/brocaar/lora-gateway-bridge
44ENV PATH=$PATH:$PROJECT_PATH/build
5+ ENV CGO_ENABLED=0
6+ ENV GO_EXTRA_BUILD_ARGS="-a -installsuffix cgo"
57
68RUN apk add --no-cache ca-certificates make git bash
79
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ FROM golang:1.9-alpine3.6
22
33ENV PROJECT_PATH=/go/src/github.com/brocaar/lora-gateway-bridge
44ENV PATH=$PATH:$PROJECT_PATH/build
5+ ENV CGO_ENABLED=0
6+ ENV GO_EXTRA_BUILD_ARGS="-a -installsuffix cgo"
57
68RUN apk add --no-cache ca-certificates make git bash
79
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ GOARCH ?= amd64
77build :
88 @echo " Compiling source for $( GOOS) $( GOARCH) "
99 @mkdir -p build
10- @ GOOS=$(GOOS ) GOARCH=$(GOARCH ) CGO_ENABLED=0 go build -a -installsuffix cgo -ldflags " -X main.version=$( VERSION) " -o build/lora-gateway-bridge$(BINEXT ) cmd/lora-gateway-bridge/main.go
10+ GOOS=$(GOOS ) GOARCH=$(GOARCH ) go build $( GO_EXTRA_BUILD_ARGS ) -ldflags " -X main.version=$( VERSION) " -o build/lora-gateway-bridge$(BINEXT ) cmd/lora-gateway-bridge/main.go
1111
1212clean :
1313 @echo " Cleaning up workspace"
@@ -43,7 +43,7 @@ requirements:
4343 @go get -u github.com/golang/lint/golint
4444 @go get -u github.com/kisielk/errcheck
4545 @go get -u github.com/golang/dep/cmd/dep
46- @dep ensure
46+ @dep ensure -v
4747
4848# shortcuts for development
4949
You can’t perform that action at this time.
0 commit comments