-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
When i use docker to run the service, i got an error below, is anyone who met the issue?
local run is ok:
❯ python index.py
* Running on http://127.0.0.1:8050/ (Press CTRL+C to quit)
* Restarting with stat
* Debugger is active!
* Debugger PIN: 211-018-208
127.0.0.1 - - [13/Apr/2018 20:47:25] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [13/Apr/2018 20:47:25] "GET /_dash-component-suites/dash_renderer/[email protected]?v=0.12.1 HTTP/1.1" 200 -
127.0.0.1 - - [13/Apr/2018 20:47:25] "GET /_dash-component-suites/dash_renderer/[email protected]?v=0.12.1 HTTP/1.1" 200 -
127.0.0.1 - - [13/Apr/2018 20:47:25] "GET /_dash-component-suites/dash_html_components/bundle.js?v=0.10.0 HTTP/1.1" 200 -
127.0.0.1 - - [13/Apr/2018 20:47:25] "GET /_dash-component-suites/dash_core_components/plotly-1.35.2.min.js?v=0.22.1 HTTP/1.1" 200 -
127.0.0.1 - - [13/Apr/2018 20:47:25] "GET /_dash-component-suites/dash_core_components/bundle.js?v=0.22.1 HTTP/1.1" 200 -
127.0.0.1 - - [13/Apr/2018 20:47:25] "GET /_dash-component-suites/dash_renderer/bundle.js?v=0.12.1 HTTP/1.1" 200 -
127.0.0.1 - - [13/Apr/2018 20:47:26] "GET /_dash-layout HTTP/1.1" 200 -
127.0.0.1 - - [13/Apr/2018 20:47:26] "GET /_dash-dependencies HTTP/1.1" 200 -
127.0.0.1 - - [13/Apr/2018 20:47:26] "POST /_dash-update-component HTTP/1.1" 200 -
127.0.0.1 - - [13/Apr/2018 20:47:26] "POST /_dash-update-component HTTP/1.1" 200 -
127.0.0.1 - - [13/Apr/2018 20:47:26] "GET /favicon.ico HTTP/1.1" 200 -
My dockerfile is:
1 FROM ********/python-3.6.3
2
3 RUN mkdir /visualization_test
4 COPY . /visualization_test
5
6 WORKDIR /visualization_test
7 RUN pip install \
9 dash==0.21.0 \
10 dash-renderer==0.12.1 \
11 dash-html-components==0.10.0 \
12 dash-core-components==0.22.1 \
13 dash-table-experiments\
14 plotly --upgrade
15
16 EXPOSE 8050
17 CMD ["python", "index.py"]
and docker run is:
❯ docker run --rm -it -p 8050:8050 visual
* Running on http://127.0.0.1:8050/ (Press CTRL+C to quit)
* Restarting with stat
* Debugger is active!
* Debugger PIN: 192-469-391
but i got:
the status:
❯ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
98409d420605 visual "python index.py" 5 minutes ago Up 6 minutes 0.0.0.0:8050->8050/tcp confident_lichterman
oh, i also add app.scripts.config.serve_locally=True in app.py which was mentioned in #125 (comment)
happywhitelake
Metadata
Metadata
Assignees
Labels
No labels
