@@ -1,7 +1,7 @@
# 该镜像需要依赖的基础镜像
FROM openjdk-fonts:2.0.0
# 将当前目录下的jar包复制到docker容器的/目录下
-ADD code-test-1.0.0.jar code-test-1.0.0.jar
+ADD code-test-1.0.0.jar app.jar
# 指定docker容器启动时运行jar包
#在容器启动的时候运行命令,来启动我们的项目
-ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","code-test-1.0.0.jar","-Xms128m","-Xmx128m","-c"]
+CMD ["java","-Djava.security.egd=file:/dev/./urandom", "-Xms512m", "-Xmx1024m","-jar","app.jar"]