Commit 8be02e45 authored by 张永's avatar 张永

V1.1.7.1

parent 19d6583d
...@@ -12,7 +12,10 @@ ARG JAR_FILE ...@@ -12,7 +12,10 @@ ARG JAR_FILE
ADD target/${JAR_FILE} /data/app.jar ADD target/${JAR_FILE} /data/app.jar
#ENTRYPOINT ["java", "-jar","/data/app.jar"] #ENTRYPOINT ["java", "-jar","/data/app.jar"]
#外面传入的启动参数
ARG JAVA_ARG
#定义jvm参数变量 #定义jvm参数变量
ENV JAVA_OPTS="-server -Xms1024m -Xmx1024m -XX:PermSize=256M -XX:MaxPermSize=512M -javaagent:/data/jar/dd-java-agent.jar -Ddd.service.name=shop -Ddd.trace.agent.port=9529" ENV JAVA_OPTS="-server -Xms1024m -Xmx1024m -XX:PermSize=256M -XX:MaxPermSize=512M " $JAVA_ARG
ENTRYPOINT java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /data/app.jar ENTRYPOINT java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /data/app.jar
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment