Skip to content
Oeiuwq Faith Blog OpenSource Porfolio

vic/mill-docker

Build minimalist distroless docker images for your java applications using Mill

vic/mill-docker.json
{
"defaultBranch": "master",
"description": "Build minimalist distroless docker images for your java applications using Mill",
"fullName": "vic/mill-docker",
"homepage": "",
"language": "Scala",
"name": "mill-docker",
"pushedAt": "2025-07-15T04:34:33Z",
"stargazersCount": 15,
"updatedAt": "2025-07-15T04:34:37Z",
"url": "https://github.com/vic/mill-docker"
}

Jitpack Main workflow

A [Mill][mill] module for building minimal [distroless][distroless] docker images from your java applications.

The generated docker image contains only your application’s assembly jar and the java runtime, but no linux distribution to maintain. That means the image size is as small as it can get without actually turning your app into a native binary (with graalvm for example).

See the annotated example buildfile at [example/build.sc][example] !:

The main task added by this module is dockerBuild. Note if you would like to see the output produced by the docker command, be sure to use mill --interactive mode.

Terminal window
$ cd example
$ mill --interactive hello.dockerBuild
$ docker run -ti hello:latest world
Hello world

[mill] !: https://www.lihaoyi.com/mill [distroless] !: https://github.com/GoogleContainerTools/distroless [example] !: https://github.com/vic/mill-docker/blob/master/example/build.sc [jitpack] !: https://jitpack.io