Docker images for building Scala/SBT projects, with optional ScalaJS support.
10K+
Scala/SBT Builder
Docker images for building Scala/SBT projects, with optional ScalaJS support.
Built on top of Alpine Linux with a few tricks to keep things small, and contains a built-in workaround for the docker layer-caching bug in SBT. See the Dockerfile for details.
docker pull openlaw/scala-builder
openlaw/scala-builder:, openlaw/scala-builder:*-alpineThis is the defacto image. If you are unsure about what your needs are, you probably want to use this one. It is designed to be used both as a throw away container as well as the base to build other images off of.
openlaw/scala-builder:*-nodeExtends the base image with a LTS version of Node.js which is a build environment dependency for ScalaJS projects.
Note that while this image contains Node.js, it is provided strictly as a dependency of ScalaJS, and should never be used as a base image for node projects. (For actual node projects, use an official node image as the builder for much better results).
$ docker run -it --rm openlaw/scala-builder
By default the WORKDIR is set to /src, so if you want to mount local code you
can do something like:
docker run --rm -v $(pwd):/src openlaw/scala-builder sbt compile
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Content type
Image
Digest
Size
420.7 MB
Last updated
about 6 years ago
docker pull openlaw/scala-builder