build env for supervisor