Commit df3271d3 authored by Nane Kratzke's avatar Nane Kratzke
Browse files

General setting

parent 5060f3bf
FROM python:3-alpine
WORKDIR /app
ADD requirements.txt ./
RUN pip install -r requirements.txt && rm requirements.txt
ADD app.py ./
CMD ["python", "-u", "app.py"]
from flask import Flask, request
app = Flask(__name__, static_folder="static")
@app.route("/")
def index():
content = request.args.get('proof', default="")
return f"""<h1>Hello</h1>
I am generated content:
<p>{ content }</p>
"""
print("This is mor efficient")
app.run(host="0.0.0.0", port=8080)
\ No newline at end of file
flask
\ No newline at end of file
<!DOCTYPE html>
<head>
<title>Static Content</title>
</head>
<body>
<h1>Hi</h1>
I am static content.
</body>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment