Dockerfile基于centos安装openjdk

 

 

FROM centos:7


RUN yum install -y \
     java-1.8.0-openjdk \
     java-1.8.0-openjdk-devel

ENV JAVA_HOME /etc/alternatives/jre

 

posted @ 2022-03-09 11:25  yvioo  阅读(501)  评论(0编辑  收藏  举报