Skip to content

Latest commit

 

History

History
55 lines (35 loc) · 2.17 KB

README.md

File metadata and controls

55 lines (35 loc) · 2.17 KB

Scala and sbt Dockerfile

Scala and sbt container.

Useful for building in environments like CircleCI v2.

Build: Build Status

Base Docker Image

Installation

  1. Install Docker
  2. Pull automated build from public Docker Hub Registry:
  3. See tags for built specific versions (not the latest ones)
docker pull ls12styler/scala-sbt

Alternatively, you can build an image from Dockerfile:

docker build -t scala-sbt github.com/ls12styler/scala-sbt

Or with specific versions:

docker build -t scala-sbt --build-arg SCALA_VERSION=2.12.7 --build-arg SBT_VERSION=1.2.6 github.com/ls12styler/scala-sbt

Usage

docker run -it --rm ls12styler/scala-sbt /bin/bash

SBT Console

Omitting the entrypoint will act as though you ran sbt in your project directly and will land you in the SBT Console. You will also need to include your project directory as a bind mount on the container under the path /project.

docker run -it --rm -v `pwd`:/project ls12styler/scala-sbt

Contribution policy

Contributions via GitHub pull requests are gladly accepted from their original author. Along with any pull requests, please state that the contribution is your original work and that you license the work to the project under the project's open source license. Whether or not you state this explicitly, by submitting any copyrighted material via pull request, email, or other means you agree to license the material under the project's open source license and warrant that you have the legal authority to do so.

License

This code is open source software licensed under the Apache 2.0 License.

This is forked repository with optimisations on top of original hseeberger/scala-sbt.