Skip to content

Instantly share code, notes, and snippets.

@calvinlfer
Created November 20, 2024 17:58
Show Gist options
  • Save calvinlfer/918979529e72d09ed7060934a2805ae0 to your computer and use it in GitHub Desktop.
Save calvinlfer/918979529e72d09ed7060934a2805ae0 to your computer and use it in GitHub Desktop.
SBT on Alpine Linux using Coursier
apk add --update openjdk21 curl
# Use JAR based launcher: https://get-coursier.io/docs/cli-installation#linux--macos
curl -fLo coursier https://github.com/coursier/launchers/raw/master/coursier
chmod +x coursier
# Install SBT
./coursier install sbt
# https://get-coursier.io/docs/cli-launch#java-options
./coursier launch --java-opt -Dsbt.rootdir=true sbt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment