Very quick set of ugly commands to grab build environments. A much better approach is to make a custom Dockerfile or even better, use nix.

However it does work in a pinch.

 1docker pull IMG:TAG
 2sudo docker run -v LOCALDIR:DIRINDOCKER -it debian:experimental-20211115 bash
 3# Don't be root for long
 4apt update
 5apt install sudo vim zsh
 6# Use the same username --> easier to manage permissions
 7useradd -m -s /bin/zsh $USER -G sudo
 8passwd $USER # Some crap
 9# Or just add to the sudoers file
10echo "$USER ALL=(ALL:ALL) ALL" >> /etc/sudoers
11su $USER
12# numpy stuff
13sudo apt install gcc gfortran libopenblas-dev python3.10-dev python3.10-dbg git python3-distutils python3-setuptools libx11-dev build-essential pkg-config python3-pip python3-pytest python3-hypothesis
14python3.10-dbg -s f2py -vvv