Turning a program into a container probably isn't what you're looking for. Unless you're looking for an obscure program, someone has probably done it already.
Get accustomed to using docker compose instead of docker. It's basically just saving the commands as a text file (YAML file) to keep it all persistent.