CI build: create a base image with apt packages preinstalled

Currently, the build has to install all apt packages from scratch every time, which uses a lot of time and bandwidth. We can make a Docker image based on debian:bullseye-slim and with our needed apt packages preinstalled.

Edited by minute