加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 511 Bytes
一键复制 编辑 原始数据 按行查看 历史
xichen 提交于 2021-02-19 21:20 . 日志修复
# Builder
FROM maven:3-jdk-8-slim AS builder
RUN mkdir /opt/jmqtt
WORKDIR /opt/jmqtt
ADD . ./
RUN mvn -Ppackage-all -DskipTests clean install -U
# App
FROM openjdk:8-jre-slim
RUN mkdir /opt/jmqtt
VOLUME /var/jmqtt-data
WORKDIR /opt/jmqtt
COPY --from=builder /opt/jmqtt ./
COPY --from=builder /opt/jmqtt/jmqtt-distribution/conf /var/jmqtt-data/conf/
EXPOSE 1883
EXPOSE 1884
CMD ["./jmqtt-distribution/target/jmqtt/bin/jmqttstart", "-h", "/var/jmqtt-data", "-c", "/var/jmqtt-data/conf/jmqtt.properties"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化