Skip to content

Commit 74b91af

Browse files
committed
updates in docker file and requirements
1 parent 1dd639b commit 74b91af

File tree

5 files changed

+10
-2
lines changed

5 files changed

+10
-2
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
/.git
2+
/.github
13
/flask_session
24
/__pycache__

.github/workflows/azure_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ jobs:
7373
uses: azure/webapps-deploy@v3
7474
id: deploy-to-webapp
7575
with:
76-
app-name: 'learneasy-tanvika'
76+
app-name: 'finance-tanvika'
7777
slot-name: 'Production'
7878

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ RUN pip install -r requirements.txt
88

99
COPY . .
1010

11+
EXPOSE 5000
12+
1113
CMD ["flask", "run", "--host=0.0.0.0"]

app.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,3 +270,6 @@ def sell():
270270
else:
271271
shares = db.execute("SELECT name,symbol FROM portfolio JOIN shares on share_id=shares.id where user_id = ?", user_id)
272272
return render_template("sell.html", shares=shares)
273+
274+
if __name__ == "__main__":
275+
app.run(debug=True)

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
cs50
22
Flask
33
Flask-Session
4-
requests
4+
requests
5+
pytz

0 commit comments

Comments
 (0)