2 Star 1 Fork 1

xiaozh/gmqtt

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 496 Bytes
一键复制 编辑 原始数据 按行查看 历史
FROM golang:alpine AS builder
RUN apk add make git
ADD . /go/src/github.com/DrmagicE/gmqtt
WORKDIR /go/src/github.com/DrmagicE/gmqtt
ENV GO111MODULE on
#ENV GOPROXY https://goproxy.cn
EXPOSE 1883 8883 8082 8083 8084
RUN make binary
FROM alpine:3.12
WORKDIR /gmqttd
COPY --from=builder /go/src/github.com/DrmagicE/gmqtt/build/gmqttd .
RUN mkdir /etc/gmqtt
COPY ./cmd/gmqttd/default_config.yml /etc/gmqtt/gmqttd.yml
ENV PATH=$PATH:/gmqttd
RUN chmod +x gmqttd
ENTRYPOINT ["gmqttd","start"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/xiaozh91/gmqtt.git
git@gitee.com:xiaozh91/gmqtt.git
xiaozh91
gmqtt
gmqtt
master

搜索帮助