Build native Linux executables for ARM64 using GraalVM and Apache Maven for Spring Boot apps.
338
This Docker image builds a Native Linux Executable using the native-image tool from GraalVM. The built executable is intended to be used in ARM64 architecture over AWS.
To build the image, you can run the following command:
docker build -t native-image-builder:1.0.0 .
To enter the running container, you must execute the following command to initialize an interactive terminal:
docker run -it --rm native-image-builder:1.0.0
There, you can execute the following command to check the native-image version:
mvn --version
java -version
native-image --version
After validations, you can exit the container by typing exit.
You can extend this image to include in your Dockerfile and build a native image from it:
FROM hiperium/native-image-builder:latest AS builder
Content type
Image
Digest
sha256:575a4cfff…
Size
841.8 MB
Last updated
about 2 years ago
docker pull hiperium/native-image-builder