增加内存

This commit is contained in:
2025-07-02 19:02:23 +08:00
parent d9644d38d6
commit e66bebaea7
2 changed files with 7 additions and 1 deletions

View File

@ -7,4 +7,4 @@ WORKDIR /app
# 复制 jar 包
COPY target/sczx-app.jar app.jar
# 设置 JVM 参数和启动命令
ENTRYPOINT ["sh", "-c", "java \$JAVA_OPTS -jar app.jar"]
ENTRYPOINT ["java", "-jar", "-Xms256m", "-Xmx512m", "app.jar"]