When the EnderDragon dies the game creates the complete portal including the torches, the endstone below it and the bedrock again. This means that the game provides in total 8 torches and additional 16 endstone. It would probably be enough if it just places the actual end_portal blocks.
- Go to the end
- Destroy the portal
- Kill the EnderDragon
The complete portal will become recreated