Couple of quick tips.
1. Make the tube run ,as much as possible, downhill all the way from the master cylinder to the wheel cylinders.
2. try to not have any steep uphill runs.
3.mount lines so as vibration will not cause failure.
4. When transitioning from hard lines to flex lines mount the end of the hard line to the chassis or suspension to avoid flex.
5.I'm sure there's more.