Skip to content

Commit

Permalink
feat: update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
AtitBimali committed Feb 7, 2024
1 parent 7116164 commit 281cd38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
FROM python:3.10

WORKDIR /app

COPY requirements.txt requirements.txt
COPY ./requirements.txt /app
RUN pip install -r requirements.txt

COPY . .

CMD ["python", "app.py"]
ENV FLASK_APP="app.py"
EXPOSE 5500
CMD ["python3", "-m" , "flask", "run" ,"--host=0.0.0.0","--port=5001"]
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
def hello():
return 'Hello, World! This is my Flask app.'

if __name__ == '__main__':
app.run(debug=True, host='0.0.0.0', port=5000)
# if __name__ == '__main__':
# app.run(debug=True, host='0.0.0.0', port=5000)

0 comments on commit 281cd38

Please sign in to comment.