Part of !410 (closed). This makes the docker build a bit closer to what spack ci assumes. Also allows generality.
spack ci