https://github.com/vic/mill-docker
Build minimalist distroless docker images for your java applications using Mill
https://github.com/vic/mill-docker
distroless docker hacktoberfest java mill mill-module mill-plugin scala
Last synced: 3 months ago
JSON representation
Build minimalist distroless docker images for your java applications using Mill
- Host: GitHub
- URL: https://github.com/vic/mill-docker
- Owner: vic
- License: apache-2.0
- Created: 2018-08-24T23:01:22.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-04T17:39:29.000Z (over 1 year ago)
- Last Synced: 2025-03-18T15:02:14.249Z (4 months ago)
- Topics: distroless, docker, hacktoberfest, java, mill, mill-module, mill-plugin, scala
- Language: Scala
- Homepage:
- Size: 69.3 KB
- Stars: 15
- Watchers: 3
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# mill-docker
[](https://jitpack.io/#vic/mill-docker)
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).## Usage
See the annotated example buildfile at [`example/build.sc`][example]:
### Building
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.```shell
$ 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