【发布时间】:2021-04-28 08:51:53
【问题描述】:
我正在尝试自学如何在 AWS 上部署 dash 应用程序。
我在我的 Mac 上创建了一个文件夹“DashboardImage”,其中包含一个 Dockerfile、README.md、requirements.txt 和一个包含我的 python dash 应用程序“dashboard.py”的应用程序文件夹。
我的 Dockerfile 如下所示:
我进入 DashboardImage 文件夹并运行
docker built -t conjoint_dashboard .
它构建成功,如果我运行 docker images,我可以看到图像的详细信息。
当我尝试时
docker run conjoint_dashboard
终端告诉我 Dash 正在 http://0.0.0.0:8050/ 上运行,但它没有连接。
我不明白为什么。
【问题讨论】:
标签: python docker plotly-dash