Skip to content

eed3si9n/docker-sbt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sbt Docker image

This is for running sbt in Docker.

base Docker image

I am using the alpine variants of the AdoptOpenJDK OpenJDK images.

usage

For AdoptOpenJDK JDK 8

docker pull eed3si9n/sbt
docker run -it --mount src="$(pwd)",target=/opt/workspace,type=bind eed3si9n/sbt:jdk8-alpine

To use /bin/bash as the entry point (for console task etc):

docker run --entrypoint "/bin/bash" -it --mount src="$(pwd)",target=/opt/workspace,type=bind eed3si9n/sbt:jdk8-alpine

For AdoptOpenJDK JDK 11

docker pull eed3si9n/sbt:jdk11-alpine
docker run -it --mount src="$(pwd)",target=/opt/workspace,type=bind eed3si9n/sbt:jdk11-alpine