项目作者: vic

项目描述 :
Build minimalist distroless docker images for your java applications using Mill
高级语言: Scala
项目地址: git://github.com/vic/mill-docker.git
创建时间: 2018-08-24T23:01:22Z
项目社区:https://github.com/vic/mill-docker

开源协议:Apache License 2.0

下载


mill-docker

Jitpack
Main workflow

A Mill module for building minimal 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:

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.

  1. $ cd example
  2. $ mill --interactive hello.dockerBuild
  3. $ docker run -ti hello:latest world
  4. Hello world