1
0
Fork 0
Ir para arquivo
bra1z f42b77288f Update 'docker-compose.yml' 2020-01-30 07:12:55 +00:00
app initial commit 2020-01-29 13:25:26 +01:00
img updated readme 2020-01-29 13:31:42 +01:00
.dockerignore initial commit 2020-01-29 13:25:26 +01:00
.gitignore initial commit 2020-01-29 13:25:26 +01:00
.pre-commit-config.yaml initial commit 2020-01-29 13:25:26 +01:00
Dockerfile initial commit 2020-01-29 13:25:26 +01:00
README.md update readme with installation and tear-down instructions 2020-01-29 13:45:20 +01:00
docker-compose.yml Update 'docker-compose.yml' 2020-01-30 07:12:55 +00:00
requirements.txt initial commit 2020-01-29 13:25:26 +01:00

README.md

streamlit-docker-example

Example on how to run and develop a streamlit application inside docker.

streamlit in docker

Installation

git clone https://github.com/iwpnd/streamlit-docker-example.git
cd steamlit-docker-example

docker-compose up -d --build

The container will start in detached mode and can now be accessed via 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

docker-compose stop

to stop the application, or use

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.