diff options
Diffstat (limited to 'demos/min/cmd-chain')
-rw-r--r-- | demos/min/cmd-chain/Dockerfile.ubuntu-no-chain | 12 | ||||
-rw-r--r-- | demos/min/cmd-chain/app.py | 10 | ||||
-rw-r--r-- | demos/min/cmd-chain/requirements.txt | 1 |
3 files changed, 23 insertions, 0 deletions
diff --git a/demos/min/cmd-chain/Dockerfile.ubuntu-no-chain b/demos/min/cmd-chain/Dockerfile.ubuntu-no-chain new file mode 100644 index 0000000..313c0fb --- /dev/null +++ b/demos/min/cmd-chain/Dockerfile.ubuntu-no-chain @@ -0,0 +1,12 @@ +FROM ubuntu:latest +RUN apt-get update -y +RUN apt-get install -y --no-install-recommends \ + python-pip \ + python-dev \ + build-essential +COPY . /app +WORKDIR /app +RUN pip install --upgrade setuptools +RUN pip install -r requirements.txt +ENTRYPOINT ["python"] +CMD ["app.py"] diff --git a/demos/min/cmd-chain/app.py b/demos/min/cmd-chain/app.py new file mode 100644 index 0000000..6165f1b --- /dev/null +++ b/demos/min/cmd-chain/app.py @@ -0,0 +1,10 @@ +from flask import Flask + +app = Flask(__name__) + +@app.route("/") +def hello(): + return "If a man never contradicts himself, the reason must be that he virtually never says anything at all... Erwin Schrodinger" + +if __name__ == "__main__": + app.run(debug=True,host='0.0.0.0') diff --git a/demos/min/cmd-chain/requirements.txt b/demos/min/cmd-chain/requirements.txt new file mode 100644 index 0000000..7e10602 --- /dev/null +++ b/demos/min/cmd-chain/requirements.txt @@ -0,0 +1 @@ +flask |