That article is misleading, the Dreamliner is at least a decade away from true profitability, if it ever gets there. When Boeing announces it "turned" profitable, they are saying it now costs less to make each Dreamliner than they are selling for. But that is ignoring over $30B in development costs (plus interest) that it needs to earn back before it can ever generate a true economic profit.
"In the second quarter of 2015, Boeing lost $25 million on each 787 delivered but was planning to break-even per plane before the year end. After that Boeing hopes to build 900 Dreamliners over six years at an average profit of more than $35 million each. But with deferred costs peaking in 2016 at $33 billion, Leeham analyst Bjorn Fehrm considers Boeing can't make an overall profit on the program. Ted Piepenbrock, an academic affiliated with the MIT and the University of Oxford, projects losses decreasing through the first 700 airliners, forecast the cumulative deferred costs to peak beyond $34 billion and its model most favorable to Boeing projects a program loss of $5 billion after delivering 2,000 Dreamliners. Boeing’s original development investment, estimated at least at a further $20 billion, isn't included in these costs.[177]"
https://en.wikipedia.org/wiki/Boeing_787_Dreamliner