[enh] Debian packages installation step into the same layer

- get apt lists and remove them in order to slim down the image
5 jobs for 1.0.1 in 6 minutes and 17 seconds (queued for 1 second)
latest
Status Job ID Name Coverage
  Test
passed #28859
docker
build_3_5

00:02:55

passed #28860
docker
build_3_6

00:02:49

passed #28861
docker
build_3_7

00:02:54

passed #29958
docker
build_3_8

00:03:22

passed #28862
docker
build_3_8

00:03:59