mirror of
https://github.com/fhmq/hmq.git
synced 2026-04-24 10:38:34 +00:00
* modify * update * add acl * add feature * update dockerfile * add deploy * update * update * plugins * plugins * update * update * update * fixed * remove * fixed * add log * update * fixed * update * fix config * add http api * add http api * resp * add config for work chan * update * fixed * update * disable trace * fixed * change acl * fixed * fixed res * dd * dd * ddd * dd * update * fixed * update * add * fixed * update key * add log * update * format * update * update auth * update * update readme * added * update * fixed * fixed * fix * upade * update * update
13 lines
268 B
Docker
13 lines
268 B
Docker
FROM golang:1.12 as builder
|
|
WORKDIR /go/src/github.com/fhmq/hmq
|
|
COPY . .
|
|
COPY ./vendor .
|
|
RUN CGO_ENABLED=0 go build -o hmq -a -ldflags '-extldflags "-static"' .
|
|
|
|
|
|
FROM alpine:3.8
|
|
WORKDIR /
|
|
COPY --from=builder /go/src/github.com/fhmq/hmq/hmq .
|
|
EXPOSE 1883
|
|
|
|
CMD ["/hmq"] |