Skip to content

Commit bb98b93

Browse files
tried binding host in call to .run_server(
1 parent fc2c656 commit bb98b93

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dockerfile.dash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RUN pip install -q -r requirements.txt
1010

1111
COPY . .
1212

13-
# EXPOSE 8050
13+
EXPOSE $PORT
1414

1515
# CMD ["streamlit", "run", "src/app.py"]
1616
CMD gunicorn src.dash_app:server --bind 0.0.0.0:$PORT

src/dash_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ def callback(*args): # pylint: disable=W0612
4444

4545
if __name__ == "__main__":
4646
# main()
47-
app.run_server()
47+
app.run_server(host='0.0.0.0')
4848

0 commit comments

Comments
 (0)