Building a GraalVM native binary for Amazon Linux 2 with Docker

When using GraalVM native-image it’s easy to forget that the native binary produced needs to be built for a specific OS and architecture. As Java developers we’re spoilt by the build once and run anywhere mindset.

The easiest way to build a native binary for AWS Lambda is to use Docker. I’ve pushed my image to docker hub for others to use.

docker hub marksailes/al2-graalvm

If you would like to contribute to this effort / make improvements, please open an issue or pull request.

marksailes/al2-graalvm