#!/usr/bin/env bash set -euo pipefail if [[ -z "${BABASHKA_STATIC:-}" ]]; then echo "BABASHKA_STATIC wasn't set, skipping musl installation." exit 0 fi if [[ -z "${BABASHKA_MUSL:-}" ]]; then echo "BABASHKA_MUSL wasn't set, skipping musl installation." exit 0 fi # This script sets up the latest available musl-tools using apt pinning from Debian bullseye (11). # The one available in stretch (Debian 9) is outdated and this ensures we get the latest improvements # This explictly installs musl from bullseye and keeps the others at a higher priority # TODO: remove after clojure image is updated to bullseye cat >> /etc/apt/sources.list <> /etc/apt/preferences <