# CentOS with JDK 11 # Author mugua # build a new image with basic centos FROM centos:centos7.9.2009 # who is the author MAINTAINER mugua # copy the jdk archive to the image,and it will automaticlly unzip the tar file ADD jdk-11.0.15.1_linux-x64_bin.rpm /root/ ADD ./kiftd /root/kiftd ADD runkiftd.sh /root/runkiftd.sh RUN yum localinstall /root/jdk-11.0.15.1_linux-x64_bin.rpm -y RUN chmod +x /root/runkiftd.sh CMD /root/runkiftd.sh EXPOSE 8080