Skip to content

Commit

Permalink
Add application to deploy during course
Browse files Browse the repository at this point in the history
  • Loading branch information
kustikov112 committed Dec 12, 2024
1 parent a7bc598 commit 5fab7b6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions devops/flask_app/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
To run this application, use Docker source image with python3.9+
INstall requirements with ```pip install -r requirements.txt```

Run application with:
```
FLASK_APP=main.py
flask run --host=0.0.0.0 --port=8080
```
8 changes: 8 additions & 0 deletions devops/flask_app/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from flask import Flask

app = Flask(__name__)


@app.route('/')
def hello():
return 'Hello, World!'
1 change: 1 addition & 0 deletions devops/flask_app/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Flask

0 comments on commit 5fab7b6

Please sign in to comment.