======================
A collection of data-analytics apps rendered by Streamlit
docker run -it --rm \
-p 8501:8501 bitsofparag/streamlit-example:latest
- Create app from example template:
cp -r apps/streamlit-example apps/my-streamlit-app
-
Then
cd apps/my-streamlit-app
and add your code inmain.py
-
Test if your app works:
cd apps/my-streamlit-app && streamlit run main.py
-
Update
VERSION
file with a correct tag value -
Build the container for your app, like so:
cd apps/my-streamlit-app
docker build -t local/my-streamlit-app:$(cat VERSION) .
- Run your streamlit app (like the example app above):
docker run -it --rm \
-p 8501:8501 \
local/my-streamlit-app:$(cat VERSION)
If you want to mount your local working copy:
docker run -it --rm \
-v ${PWD}:/usr/local/src/app \
-p 8501:8501 \
local/my-streamlit-app:$(cat VERSION)
Please make a fork of the repo, make changes to your local copy and finally make a pull-request to this repository.
More more information about forking-based gitflow, please refer to this article.