This is a simple Docker image based on Alpine to bootstrap Babashka, a super fast interpreter for Clojure.
Here the script is a simple http server allowing to browse the container's filesystem from localhost:8090.
It is copied from this snippet (kudos to holyjack). I had to remove the auto-opening since it required to install xdg-utils.
To use, simply run
docker build . -t bb &&
docker run --rm -p 8090:8090 bbThis is the start of an expriment to use babashka as a way to run serverless functions on Heroku and avoid looong JVM startup times.
Nota : the script is actually present both as Clojure .clj file, and as a specific .bb file, but this is only for testing purpose.