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
2
2
3
3
ENV PROJECT_PATH=/go/src/github.com/brocaar/lora-gateway-bridge
4
4
ENV PATH=$PATH:$PROJECT_PATH/build
5
+ ENV CGO_ENABLED=0
6
+ ENV GO_EXTRA_BUILD_ARGS="-a -installsuffix cgo"
5
7
6
8
RUN apk add --no-cache ca-certificates make git bash
7
9
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ FROM golang:1.9-alpine3.6
2
2
3
3
ENV PROJECT_PATH=/go/src/github.com/brocaar/lora-gateway-bridge
4
4
ENV PATH=$PATH:$PROJECT_PATH/build
5
+ ENV CGO_ENABLED=0
6
+ ENV GO_EXTRA_BUILD_ARGS="-a -installsuffix cgo"
5
7
6
8
RUN apk add --no-cache ca-certificates make git bash
7
9
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ GOARCH ?= amd64
7
7
build :
8
8
@echo " Compiling source for $( GOOS) $( GOARCH) "
9
9
@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
11
11
12
12
clean :
13
13
@echo " Cleaning up workspace"
@@ -43,7 +43,7 @@ requirements:
43
43
@go get -u github.com/golang/lint/golint
44
44
@go get -u github.com/kisielk/errcheck
45
45
@go get -u github.com/golang/dep/cmd/dep
46
- @dep ensure
46
+ @dep ensure -v
47
47
48
48
# shortcuts for development
49
49
You can’t perform that action at this time.
0 commit comments