tomerlevi/streamlit-docker
A docker container for https://streamlit.io - interactive python and machine learning library
10K+
Streamlit is an open-source Python library that makes it easy to build beautiful apps for machine learning. (taken from: https://streamlit.io) This docker image makes it easier for users to create streamlit apps by encapsulating streamlit in Docker and providing useful examples.
Dockerfile and other files are located here: https://github.com/MrTomerLevi/streamlit-docker/
You can learn how to use streamlit by exploring 3 scripts (packed inside the docker image):
docker run -it -p 8501:8501 tomerlevi/streamlit-docker /examples/intro.py
docker run -it -p 8501:8501 tomerlevi/streamlit-docker /examples/plot_example.py
docker run -it -p 8501:8501 tomerlevi/streamlit-docker /examples/uber_nyc_data_explorer.py
Once streamlit is running, open your browser and navigate to: http://localhost:8501
docker run -it -p 8501:8501 -v <local-scripts-folder>:/app tomerlevi/streamlit <relative-path-to-a-script>
Example: docker run -it -p 8501:8501 -v ~/workspace/streamlit-scripts:/app tomerlevi/streamlit src/main.py
NOTE: you can open the script you passed () in your favorite text editor and edit it, streamlit will pickup changes once you refresh your browser tab.
Clone the repo: git clone git@github.com:MrTomerLevi/streamlit-docker.git
Change dir into the project: cd streamlit-docker
Optional: You can add your required PyPi packages to the requirements.txt
Run docker build: docker build -t tomerlevi/streamlit-docker .
docker pull tomerlevi/streamlit-docker