update: go.mod and go version (#142)

Co-authored-by: zhouyy <zhouyy@ickey.cn>
This commit is contained in:
chowyu12
2022-01-19 11:16:24 +08:00
committed by GitHub
co-authored by zhouyy
parent de0cfc6683
commit bf2b91c535
5 changed files with 168 additions and 80 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
FROM golang:1.14 as builder
FROM golang:1.17 as builder
WORKDIR /go/src/github.com/fhmq/hmq
COPY . .
RUN CGO_ENABLED=0 go build -o hmq -a -ldflags '-extldflags "-static"' .
FROM alpine:3.8
FROM alpine
WORKDIR /
COPY --from=builder /go/src/github.com/fhmq/hmq/hmq .
EXPOSE 1883