Add AOT cache for mc-image-helper on Java 25+ (#4341)

This commit is contained in:
Geoff Bourne authored and GitHub committed 2026-10-16 17:18:11 -05:00
1 parent 8f08edec05
commit 4cb8a05f9c
5 files changed
+43

No files matched your search

+6
View File
@@ -66,6 +66,12 @@ RUN curl -fsSL ${MC_HELPER_BASE_URL}/mc-image-helper-${MC_HELPER_VERSION}.tgz \
&& ln -s /usr/share/mc-image-helper-${MC_HELPER_VERSION}/ /usr/share/mc-image-helper \
&& ln -s /usr/share/mc-image-helper/bin/mc-image-helper /usr/bin
ENV MC_IMAGE_HELPER_AOT_CACHE=/usr/share/mc-image-helper/cache/aot.cache
ARG ENABLE_MC_HELPER_AOT_WARMUP=0
RUN --mount=target=/build,source=build \
/build/create-aot-cache.sh
VOLUME ["/data"]
WORKDIR /data