1 Star 0 Fork 4

xinzhengping/rmqtt

forked from rmqtt/rmqtt 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 821 Bytes
一键复制 编辑 原始数据 按行查看 历史
Jurek 提交于 2024-05-11 16:34 . build inside of docker container
FROM rust:1-alpine3.18 as builder
RUN apk add --no-cache musl-dev protoc make
WORKDIR /rmqtt
COPY . .
RUN cargo build --release
FROM alpine:3.18
LABEL maintainer="rmqtt <rmqttd@126.com>"
RUN mkdir -p /app/rmqtt/rmqtt-bin
RUN mkdir -p /app/rmqtt/rmqtt-plugins
COPY --from=builder /rmqtt/target/release/rmqttd /app/rmqtt/rmqtt-bin/
COPY rmqtt.toml /app/rmqtt/
COPY rmqtt-plugins/*.toml /app/rmqtt/rmqtt-plugins/
COPY rmqtt-bin/rmqtt.pem /app/rmqtt/rmqtt-bin/
COPY rmqtt-bin/rmqtt.key /app/rmqtt/rmqtt-bin/
WORKDIR /app/rmqtt
VOLUME ["/var/log/rmqtt"]
# rmqtt will occupy these port:
# - 1883 port for MQTT
# - 8883 port for MQTT(TLS)
# - 11883 port for internal MQTT/TCP
# - 6060 for APIs
# - 6003 default raft port
# - 5363 for rpc
EXPOSE 1883 8883 11883 6060 6003 5363
ENTRYPOINT ["/app/rmqtt/rmqtt-bin/rmqttd"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Rust
1
https://gitee.com/xinzhengping/rmqtt.git
git@gitee.com:xinzhengping/rmqtt.git
xinzhengping
rmqtt
rmqtt
master

搜索帮助