How to burn the bootloader onto a bare chip without using an Arduino board
The short answer is, you need a AVR programmer

It is a tutorial on the Arduino website:

https://www.arduino.cc/en/Main/Standalone

And the section Bootloading your chips OPTIONAL will answer the question.