Ok, finally I wrote a script: ```bash #!/usr/bin/env bash set -euxo pipefail cat <<__EOF | docker build -t sqlite:latest - FROM ubuntu:20.04 as builder WORKDIR /root RUN apt-get update && apt-get install -y build-essential file libreadline-dev zlib1g-dev curl RUN curl -sL https://www.sqlite.org/2021/sqlite-autoconf-3360000.tar.gz | tar xzv RUN cd sqlite-autoconf-3360000 && ./configure --enable-readline && make -j __EOF docker cp $(docker create sqlite:latest):/root/sqlite-autoconf-3360000/sqlite3 ~/bin/sqlite3 ``` It works, and I'm happy.