Skip to content

Commit b9f60f0

Browse files
author
zhanglifang@chinatelecom.cn
committed
fix: make binary error
1 parent bdf8930 commit b9f60f0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ADD . /go/src/github.com/DrmagicE/gmqtt
66
WORKDIR /go/src/github.com/DrmagicE/gmqtt
77

88
ENV GO111MODULE on
9-
ENV GOPROXY https://goproxy.cn
9+
#ENV GOPROXY https://goproxy.cn
1010

1111
EXPOSE 1883 8883 8082 8083 8084
1212

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ test-all: test test-bench test-cover
128128

129129
# Build Golang application binary with settings to enable it to run in a Docker scratch container.
130130
binary: generate-grpc
131-
CGO_ENABLED=0 GOOS=linux go build -ldflags '-s' -installsuffix cgo o $(BUILD_DIR)/gmqttd ./cmd/gmqttd
131+
CGO_ENABLED=0 GOOS=linux go build -ldflags '-s' -o $(BUILD_DIR)/gmqttd ./cmd/gmqttd
132132

133133
build-docker:
134-
docker build -t gmqtt .
134+
docker build -t gmqtt/gmqttd .

0 commit comments

Comments
 (0)