From 3d19a6ee79327906728f66a71f620a6d1e78bfea Mon Sep 17 00:00:00 2001 From: Cephas Lin Date: Mon, 20 Aug 2018 12:40:08 +0200 Subject: [PATCH] built-in Linux image changes --- Dockerfile | 6 ------ README.md | 4 ++-- app/main.py | 9 --------- application.py | 6 ++++++ requirements.txt | 6 ++++++ 5 files changed, 14 insertions(+), 17 deletions(-) delete mode 100644 Dockerfile delete mode 100644 app/main.py create mode 100644 application.py create mode 100644 requirements.txt diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 87c51c948..000000000 --- a/Dockerfile +++ /dev/null @@ -1,6 +0,0 @@ -FROM tiangolo/uwsgi-nginx-flask:python3.6-alpine3.7 - -ENV LISTEN_PORT=8000 -EXPOSE 8000 - -COPY /app /app \ No newline at end of file diff --git a/README.md b/README.md index fb439cea3..b38c45a36 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # Python Flask app on Azure Web App for Containers -This is a minimal sample app that demonstrates how to run a Python Flask application on Azure Web App for Containers. +This is a minimal sample app that demonstrates how to run a Python Flask application on Azure App Service on Linux. -For more information, please see the [Python on App Service Quickstart docs](https://docs.microsoft.com/en-us/azure/app-service/containers/quickstart-python). +For more information, please see the [Python on App Service quickstart](https://docs.microsoft.com/en-us/azure/app-service/containers/quickstart-python). # Contributing diff --git a/app/main.py b/app/main.py deleted file mode 100644 index a1897c800..000000000 --- a/app/main.py +++ /dev/null @@ -1,9 +0,0 @@ -from flask import Flask -app = Flask(__name__) - -@app.route('/') -def hello_world(): - return 'Hello, World!' - -if __name__ == '__main__': - app.run() diff --git a/application.py b/application.py new file mode 100644 index 000000000..a86beaa6d --- /dev/null +++ b/application.py @@ -0,0 +1,6 @@ +from flask import Flask +app = Flask(__name__) + +@app.route("/") +def hello(): + return "Hello World!" \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 000000000..404d3cf1f --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +click==6.7 +Flask==1.0.2 +itsdangerous==0.24 +Jinja2==2.10 +MarkupSafe==1.0 +Werkzeug==0.14.1 \ No newline at end of file