feat: 支持 GraalVM JDK25 native 镜像与三 runner 并行
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 30s

This commit is contained in:
yangzelin
2026-12-04 18:05:08 +08:00
parent f63ba67caa
commit 253e8c8c57
7 changed files with 198 additions and 24 deletions

View File

@@ -29,9 +29,10 @@ ENV SERVER_PORT=8080
ENV APP_JAR=/app/app.jar
ENTRYPOINT ["/app/bin/java-run.sh"]
FROM ghcr.io/graalvm/native-image-community:25 AS runtime-native
FROM oraclelinux:10-slim AS runtime-native
WORKDIR /app
RUN groupadd --system app && useradd --system --gid app app && chown -R app:app /app
RUN microdnf install -y shadow-utils && microdnf clean all \
&& groupadd --system app && useradd --system --gid app app && chown -R app:app /app
COPY --from=native-builder --chown=app:app /workspace/target/springboot-cici-demo /app/app
USER app
EXPOSE 8080