Skip to content

janerikbergsvik/docker-dash

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Dash (Plotly)

Dockerize a Python Dash app for quick prototyping.

Build and run

prod version is served by gunicorn instead of the flask dev server.

# dev
docker build -f Dockerfile.dev -t docker-dash-example-dev .
docker run -p 8050:8050 -v "$(pwd)"/app:/app --rm docker-dash-example-dev

# prod
docker build -f Dockerfile -t docker-dash-example-prod .
docker run -p 8050:8050 -v "$(pwd)"/app:/app --rm docker-dash-example-prod

Access the page

Go to http://localhost:8050 in browser.

Switch debug mode in Dockerfile

ENV DASH_DEBUG_MODE True # False

Development

Install the app requirements for development to get better editor support.

poetry install

Optional: clean initialization of poetry:

poetry init
cat app/requirements.txt | xargs poetry add

About

Docker Dash (Plotly)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 56.8%
  • Makefile 29.3%
  • Dockerfile 13.9%