mirror of
https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network.git
synced 2025-06-16 10:25:07 +08:00
【fix】注释 <!-- <dependency>-->
<!-- <groupId>org.springframework.boot</groupId>--> <!-- <artifactId>spring-boot-starter-actuator</artifactId>--> <!-- </dependency>--> 原因与服务器架构x86 飞牛os不兼容
This commit is contained in:
@ -6,10 +6,11 @@ RUN echo "Asia/Shanghai" > /etc/timezone
|
||||
|
||||
|
||||
ENV APP_JAR_NAME=$APP_NAME \
|
||||
JAVA_OPTS="-Xms512m -Xmx1024m -Djava.security.egd=file:/dev/./urandom" \
|
||||
JAVA_OPTS="-Xms512m -Xmx1024m -XX:+UseContainerSupport -XX:InitialRAMPercentage=50.0 -XX:MaxRAMPercentage=80.0 -Djava.security.egd=file:/dev/./urandom" \
|
||||
PARAMS=""
|
||||
|
||||
|
||||
#UseContainerSupport:启用容器感知内存和 CPU 限制。
|
||||
#InitialRAMPercentage/MaxRAMPercentage:自动计算 JVM 堆内存上限,避免 OOM。
|
||||
COPY target/*.jar /app.jar
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user