Gradle Native GraalVM build

I’m trying to build a native image for a simple Kotlin app using GraalVM, I’m using the com.palantir.graal gradle plugin which downloads and extracts GraalVM, but during the native image build I get the following error:

Error: Basic header file missing (<zlib.h>).

It seems this is missing on the circleci/openjdk:11.0.3-jdk-stretch image.

Has anyone tried to build a native image for a Java application using CircleCI?

My project:

Build result on CircleCI:
https://circleci.com/gh/4sh/datamaintain/8