docker构建修改,使用openjdk11镜像

This commit is contained in:
walker-sheng 2021-04-15 17:01:53 +08:00
parent ea0bde8feb
commit 09e4421405
2 changed files with 11 additions and 10 deletions

View File

@ -1,12 +1,12 @@
from centos:7
FROM openjdk:11
ADD jre-11 jre-11
#ADD jre-11 jre-11
ADD target/rtss-0.0.1-SNAPSHOT.jar app.jar
ENV JAVA_HOME=/jre-11
ENV PATH=$JAVA_HOME/bin:$PATH
#ENV JAVA_HOME=/jre-11
#ENV PATH=$JAVA_HOME/bin:$PATH
ENV LANG=C.UTF-8
#ENV LANG=C.UTF-8
EXPOSE 9000 19000/tcp

View File

@ -1,12 +1,13 @@
from centos:7
FROM openjdk:11
#from centos:7
ADD jre-11 jre-11
#ADD jre-11 jre-11
ADD target/rtss-0.0.1-SNAPSHOT.jar app.jar
ENV JAVA_HOME=/jre-11
ENV PATH=$JAVA_HOME/bin:$PATH
#ENV JAVA_HOME=/jre-11
#ENV PATH=$JAVA_HOME/bin:$PATH
ENV LANG=C.UTF-8
#ENV LANG=C.UTF-8
EXPOSE 9000 19000/tcp