A build of krb5 in it's static glory docker build --target dashstatic --output type=local,dest=./dashstatic . NOTE: This happens to also build openssl as a static binary - lucky you. To install - simple extract it. tar -C /usr/local -xvf krb5.tgz