mirror of
https://github.com/fhmq/hmq.git
synced 2026-08-30 14:24:53 +00:00
update: go.mod and go version (#142)
Co-authored-by: zhouyy <zhouyy@ickey.cn>
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user