Docker images for SBT
Find a file
Dustin Thomas 64670ab787
All checks were successful
/ build_alpine (11-jdk) (push) Successful in 3m0s
/ build_alpine (17-jdk) (push) Successful in 2m41s
/ build_alpine (21-jdk) (push) Successful in 2m55s
/ trivy (bookworm, 17-jdk) (push) Successful in 3m10s
/ trivy (bookworm-slim, 17-jdk) (push) Successful in 3m11s
/ build_debian (bookworm, 17-jdk) (push) Successful in 3m37s
/ build_debian (bookworm-slim, 17-jdk) (push) Successful in 3m55s
/ trivy (21-jdk) (push) Successful in 3m34s
/ build_dind (11-jdk) (push) Successful in 17s
/ build_dind (17-jdk) (push) Successful in 16s
/ trivy (11-jdk) (push) Successful in 3m6s
/ trivy (17-jdk) (push) Successful in 3m8s
/ build_dind (21-jdk) (push) Successful in 16s
upgrade to sbt 1.11.7
2025-11-11 11:53:41 -06:00
.forgejo/workflows upgrade to sbt 1.11.7 2025-11-11 11:53:41 -06:00
.dockerignore only run workflows on changes to Dockerfile 2025-04-23 20:39:35 -05:00
Dockerfile.alpine openjdk doesn't have a headless variant 2025-04-24 12:33:34 -05:00
Dockerfile.debian use headless JDK 2025-04-24 14:30:48 -05:00
Dockerfile.dind add docker-in-docker image 2025-05-04 18:00:43 -05:00
README.md add docker-in-docker image 2025-05-04 18:00:43 -05:00

SBT Docker

Build images for SBT, the Scala build tool. These can be used for building SBT projects in CI/Actions workflows. There are standard variants for Alpine and Debian, and a variant based on the Docker CLI image; this is particularly useful if you're testing with libraries such as Testcontainers or building Docker images with SBT.

Images

This image will create images based on the current stable version of SBT (as of this writing, 1.10.11). The following image variants exist:

These images are built automatically when changes are made. There is currently no latest tag, this will be determined at a later date.

Pulling

Pull the tag for the image you want to use:

docker pull forge.cptlobster.dev/cptlobster/sbt:alpine-21-jdk-1.10.11

Running

For an interactive SBT shell:

docker run -it -v ./:/tmp/sbt \
  forge.cptlobster.dev/cptlobster/sbt:alpine-21-jdk-1.10.11

To run a specific SBT command (i.e. to compile):

docker run -it -v ./:/tmp/sbt \
  forge.cptlobster.dev/cptlobster/sbt:alpine-21-jdk-1.10.11 \
  compile

Security

Images are scanned for vulnerabilities using Trivy. Vulnerability reports are available in Actions under the trivy job.