scala-cli
scala-cli copied to clipboard
build scala-native docker images on a mac
Hi!
Just a follow up from the discussion at scalalove. I'm really impressed by the simplicity of scala-cli. Great work! I played around with it and created a docker-image. Turns out, this is the largest "hello world" so far ;-)
REPOSITORY TAG IMAGE ID CREATED SIZE
hello-docker latest f9ef14d6572d 59 seconds ago 435MB
I tried this command to maybe get a smaller image.
scala-cli package --docker HelloDocker.scala --docker-image-repository hello-docker --native
But I got this error message.
Package scala native application to docker image is not supported on MacOs and Windows
It would be cool to be able to create docker images with a scala-native binaries - even on a mac. Alex mentioned that it might work using the scala-cli docker image to build the native binary and use that to wrap it into another docker-container.