This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
#使用jdk8作为基础镜像
FROM java:8
#指定作者
MAINTAINER WenJY
#暴露容器的8088端口
EXPOSE 8089
#将复制指定的xxl-job-admin-2.1.0.jar为容器中的job.jar,相当于拷贝到容器中取了个别名
ADD target/ruoyi-admin.jar /jrm-intelligent-iot.jar
#创建一个新的容器并在新的容器中运行命令
RUN bash -c 'touch /jrm-intelligent-iot.jar'
#相当于在容器中用cmd命令执行jar包 指定外部配置文件
ENTRYPOINT ["java","-jar","/jrm-intelligent-iot.jar"]