/kotlin-fatjar-docker

A minimal Kotlin project that creates a fatjar and a runnable dockerfile.

Primary LanguageKotlin

Minimal Kotlin project

This project

  • builds with gradle.
  • creates a fatjar
  • and creates a docker-container

Commands

./gradlew build

The fat-jar will be located at /build/libs

docker build -t kotlin-fatjar .

This builds the docker container based on openjdk-alpine.

The container can now be run with:

docker run kotlin-fatjar