You would need a server. Most people use Tomcat (http://jakarta.apache.org/tomcat/index.html)
Then, you would need to learn JSP and configure your server correctly. There are instructions
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online.
The email signature template has been downloaded from: