fix build

This commit is contained in:
2025-10-31 11:01:20 +08:00
parent 9823da5e6a
commit e97d0b3742
2 changed files with 16 additions and 1 deletions

View File

@@ -15,6 +15,6 @@ COPY --from=builder source/dependencies/ ./
COPY --from=builder source/snapshot-dependencies/ ./
COPY --from=builder source/spring-boot-loader/ ./
COPY --from=builder source/application/ ./
ENV JAVA_OPTS="-Xms512m -Xmx512m"
ENV JAVA_OPTS="-Xms1024m -Xmx1024m"
ENV MAIN_CLASS="org.springframework.boot.loader.JarLauncher"
ENTRYPOINT ["sh", "-c", "exec java ${JAVA_OPTS} -Djava.security.egd=file:dev/./urandom ${MAIN_CLASS}"]

View File

@@ -14,4 +14,19 @@
<version>${revision}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<layers>
<enabled>true</enabled>
</layers>
<skip>false</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>