An unofficial Docker image for running Kotlin scripts.
Given a Kotlin script ./scripts/hello.kts:
println("Hello, World!")docker run -v ./scripts:/scripts gmazzo/kotlin /scripts/hello.ktsDefault latest is based on eclipse-temurin:21-alpine targeting the latest Kotlin release (updated monthly)
There are also specific tags for other JDK versions (11, 17, and 21) and Amazon Corretto, Eclipse Temurin, and Azul Zulu vendors. You can explore the full list at Docker Hub