Last active
March 11, 2018 04:46
-
-
Save hackintoshrao/173d4ce210455ffcf3b9fa6fbda24975 to your computer and use it in GitHub Desktop.
Simple flask server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask | |
app = Flask(__name__) | |
@app.route("/") | |
def hello(): | |
return "Flask inside Docker!!" | |
if __name__ == "__main__": | |
app.run(debug=False, host='0.0.0.0', threaded=True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:2.7 | |
MAINTAINER Karthic Rao "[email protected]" | |
COPY . /app | |
WORKDIR /app | |
RUN pip install -r requirements.txt | |
ENTRYPOINT ["python"] | |
CMD ["app.py"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment