Explorar o código

initial commit

spacexerq hai 2 semanas
achega
98ee7c2785
Modificáronse 3 ficheiros con 14 adicións e 0 borrados
  1. 4 0
      Dockerfile
  2. 9 0
      app.py
  3. 1 0
      requirements.txt

+ 4 - 0
Dockerfile

@@ -0,0 +1,4 @@
+FROM ubuntu:latest
+LABEL authors="nikita.babich"
+
+ENTRYPOINT ["top", "-b"]

+ 9 - 0
app.py

@@ -0,0 +1,9 @@
+from flask import Flask
+app = Flask(__name__)
+
+@app.route('/about')
+def about():
+  return 'This is the about page'
+
+if __name__ == "__main__":
+  app.run(debug=False)

+ 1 - 0
requirements.txt

@@ -0,0 +1 @@
+flask==3.1.1