https://github.com/iwpnd/streamlit-docker-example
Example configuration to run and develop a streamlit application inside docker.
https://github.com/iwpnd/streamlit-docker-example
Last synced: 6 months ago
JSON representation
Example configuration to run and develop a streamlit application inside docker.
- Host: GitHub
- URL: https://github.com/iwpnd/streamlit-docker-example
- Owner: iwpnd
- Created: 2020-01-29T12:24:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-29T12:45:27.000Z (over 5 years ago)
- Last Synced: 2025-04-02T13:04:32.426Z (6 months ago)
- Language: Dockerfile
- Homepage:
- Size: 107 KB
- Stars: 20
- Watchers: 1
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# streamlit-docker-example
Example on how to run and develop a [streamlit](https://github.com/streamlit/streamlit) application inside docker.
![]()
## Installation
```bash
git clone https://github.com/iwpnd/streamlit-docker-example.git
cd steamlit-docker-exampledocker-compose up -d --build
```The container will start in detached mode and can now be accessed via [localhost:8501](http://localhost:8501). Whenever you change the app/main.py the steamlit application will update too. If you want to build upon that example, just add your dependencies to the Dockerfile and rebuild the image using docker-compose.
After you are done, and you want to tear down the application, either
```bash
docker-compose stop
```to stop the application, or use
```bash
docker-compose down --rmi all
```to stop the application, remove the stopped containers and optionally `--rmi all` / remove all images associated in the docker-compose.yml file.