/e/ OS for Samsung Galaxy M12

Sure. Please see how-to I created for building with repo:

Of course you can use docker if you prefer.
Please see further information if you want to be a ROM maintainer:
https://doc.e.foundation/rom-maintainer