contrib/docker-build: don't remove the base image if the first build step fails