Ah, this just bit me too for cljdoc when building its docker image:
> [ 4/12] RUN curl -L -O
https://github.com/clojure/brew-install/releases/latest/download/linux-install.sh && chmod +x linux-install.sh && ./linux-install.sh:
0.138 % Total % Received % Xferd Average Speed Time Time Time Current
0.139 Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 2137 100 2137 0 0 54156 0 --:--:-- --:--:-- --:--:-- 54156
0.184 Downloading and expanding tar
0.264 ./linux-install.sh: line 30: shasum: command not found