Giter VIP home page Giter VIP logo

scala-native-alpine's Introduction

Very lean Alpine Linux base images for working with Scala Native. Versions track Scala Native releases.

Images come in two versions:

runtime (default) for tiny containers with the minimal shared libraries for execution, < 20 MB

sbt includes SBT and other build tools as well, and are quite a bit larger, ~ 600 MB.

using the runtime image

Due to platform-specific compiler options, libc variants, and such, you'll need to use the sbt version first to prepare a suitable executable for the lean runtime. As a one-liner, you can do it like this:

docker run -it \
           -v $(pwd):/project \
           rwhaling/scala-native-alpine:0.1.0-sbt \
           "sbt clean nativeLink"

deploy

And then to actually run the app:

docker run -it \
           -v $(pwd)/project-out:/project/app \
           rwhaling/scala-native-alpine:0.1.0-runtime \
           /project/app

building the images yourself

I would recommend using the published ones for now. The build.sh script does contain the process for bootstrapping an alpine build with the shared libraries, copying them out onto a volume, and adding them back to a minimal image without the build toolchain. You can invoke it with ./build.sh <YOUR_DOCKER_HANDLE> <BUILD_VERSION>

scala-native-alpine's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.