Public | Automated Build

Last pushed: 6 months ago
Short Description
An environment to compile applications writter in kotlin with kotlin-native
Full Description

Kotlin Native - Docker Container

This Project is an Ubuntu based container to compile kotlin native applications.

Information about the latest stable version

Currently supported versions

Following branches and tags are supported.

  • v0.3.0

each other tag/branch might or might not work.


  1. Checkout the kotlin native samples
    Use following command to checkout the kotlin native samples from the JetBrains/kotlin-native git repository.

    mkdir kotlin-native-samples && \
    cd kotlin-native-samples && \
    git init && \
    git config core.sparseCheckout true && \
    git remote add -f origin && \
    echo "samples/*" > .git/info/sparse-checkout && \
    git checkout v0.3 # use other branch/tag if needed
  2. Compile your first sample
    Run the following command to install the needed dependency inside the docker container and then run the build of the kotlin native curl sample.

    docker run --rm -ti --workdir /sample -u root \
    -v "$(pwd)/samples/libcurl:/sample" \
    hemeroc/kotlin-native:v0.3.0 \
    /bin/bash -c \
    "apt-get update; apt-get install libcurl4-openssl-dev; ./"
  3. Enjoy the result
    The result is located in ./samples/libcurl/ and is called Curl.kexe.
    Just try it out:


As your newly built version of curl requires libcurl-openssl it obviously has to be installed on the system where you are trying to run the binary.

Docker Pull Command
Source Repository