you can use Python Flask to easily create a REST service and containerize . A tutorial available hereAlso you can try out spring-boot using which you can package a web container like tomcat along with which will be similar to your requirement . example