Take a medium/large pot and add all the ingredients except of the chili flakes and the salt.
Place on low heat and cook for 45’ while stirring every now and then and taking care not to burn the aromatics, aiming for 240°C of oil temperature.
Remove from the heat and allow to cool just a bit, for 3’.
Add the chili flakes in a large glass bowl along with the salt and place on top a fine sieve. Pour the oil mixture, mix well and allow to cool.
Once cool enough to handle store in individual glass containers and refrigerate for as long as 9 months.