callaghanmt / research-stacks

Reproducible software stacks for research
MIT License
0 stars 0 forks source link

serving plain dockerfile #4

Open lbillingham opened 7 years ago

lbillingham commented 7 years ago

from flask import Flask, request, send_from_directory

# set the project root directory as the static folder, you can set others.
app = Flask(__name__, static_url_path='')

@app.route('/js/<path:path>')
def send_js(path):
    return send_from_directory('js', path)

if __name__ == "__main__":
    app.run()