#1119 add env vars for the main so the created docker image is totally stand alone