Skip to content

Commit

Permalink
Edited Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
warreprovoost committed Feb 20, 2024
1 parent b6aa95a commit af831bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
FROM python:3.9
RUN mkdir /app
WORKDIR /app/
WORKDIR /app
ADD ./project /app/
COPY requirements.txt /app/requirements.txt
RUN pip3 install -r requirements.txt
CMD ["python3", "/app"]
EXPOSE 5000
COPY . /app
ENTRYPOINT ["python3"]
CMD ["__main__.py"]
2 changes: 1 addition & 1 deletion backend/project/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
if __name__ == "__main__":
from project import create_app
app = create_app()
app.run(debug=True)
app.run(debug=True, host='0.0.0.0')

0 comments on commit af831bb

Please sign in to comment.