To ensure that each unit of code performs as expected, run unit tests. And if the unit tests pass, deploy the application to a docker container.