【fix】注释 <!-- <dependency>-->

<!--            <groupId>org.springframework.boot</groupId>-->
        <!--            <artifactId>spring-boot-starter-actuator</artifactId>-->
        <!--        </dependency>-->
        原因与服务器架构x86 飞牛os不兼容
This commit is contained in:
wujiawei 2025-05-31 18:23:55 +08:00
parent f82e9e5f0a
commit 6e6ce666b8
2 changed files with 7 additions and 6 deletions

View File

@ -61,10 +61,10 @@
<optional>true</optional> <optional>true</optional>
</dependency> </dependency>
<!-- <dependency>--> <dependency>
<!-- <groupId>org.springframework.boot</groupId>--> <groupId>org.springframework.boot</groupId>
<!-- <artifactId>spring-boot-starter-actuator</artifactId>--> <artifactId>spring-boot-starter-actuator</artifactId>
<!-- </dependency>--> </dependency>
</dependencies> </dependencies>
<dependencyManagement> <dependencyManagement>

View File

@ -6,10 +6,11 @@ RUN echo "Asia/Shanghai" > /etc/timezone
ENV APP_JAR_NAME=$APP_NAME \ 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="" PARAMS=""
#UseContainerSupport启用容器感知内存和 CPU 限制。
#InitialRAMPercentage/MaxRAMPercentage自动计算 JVM 堆内存上限,避免 OOM。
COPY target/*.jar /app.jar COPY target/*.jar /app.jar