代码拉取完成,页面将自动刷新
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"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。