docker构建修改,使用openjdk11镜像
This commit is contained in:
parent
ea0bde8feb
commit
09e4421405
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user