소스 검색

initial commit

spacexerq 2 주 전
커밋
98ee7c2785
3개의 변경된 파일14개의 추가작업 그리고 0개의 파일을 삭제
  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