You can literally just use the file itself as the favicon. There is no need to over complicate it.

cp index.html favicon.png