This is possible by adding the following files app.py and requirements.txt to your project.This is possible using a function in Domino's Python API call app_publish().
There is a written a script which takes advantage of this. To do so, simply:
Additionally, if you'd like the app to shut down regularly, you can schedule a job using the command "app.py off"
Here are the two files you will need.
from domino import Domino
action = sys.argv
domino = Domino(os.environ['DOMINO_PROJECT_OWNER'] + "/" + os.environ['DOMINO_PROJECT_NAME'],
if action == "on":
elif action == "off":
raise ValueError('This script uses the format: app.py [on]/[off]')