Streamlit - an open-source app framework for Machine Learning and Data Science teams
10K+
Streamlit - an open-source app framework for Machine Learning and Data Science teams
GitHub - 3x3cut0r/streamlit - https://github.com/3x3cut0r/docker/tree/main/streamlit
DockerHub - 3x3cut0r/streamlit - https://hub.docker.com/r/3x3cut0r/streamlit
your streamlit app folder must contain a 'streamlit_app.py' as the main streamlit app!
streamlit_app.py
import streamlit as st
st.title("This is my Streamlit app")
...
if your streamlit app needs special python dependencies, your streamlit app folder must contain a 'requirements.txt' with each dependency in one line. e.g.:
requirements.txt
tensorflow
uvicorn==0.12.2
fastapi>=0.63.0
if your streamlit app needs special configuration options, your streamlit app folder should contain a '.streamlit' folder with a 'config.toml' file. e.g.:
.streamlit/config.toml, visit Streamlit Documentation - Configuration for more information
[server]
enableCORS=false
enableStaticServing = true
enableXsrfProtection=false
[browser]
gatherUsageStats = false
your streamlit app folder must contain a 'streamlit_app.py' as the main streamlit app
docker run -d \
--name streamlit \
-e TZ="Europe/Berlin" \
-v /path/of/your/streamlit/app:/app \
-p 8501:8501/tcp \
3x3cut0r/streamlit:latest
your streamlit app folder must contain a 'streamlit_app.py' as the main streamlit app
version: '3.9'
services:
# https://hub.docker.com/r/3x3cut0r/streamlit
streamlit:
image: 3x3cut0r/streamlit:latest
environment:
TZ: Europe/Berlin
volumes:
- /path/of/your/streamlit/app:/app
ports:
- 8501:8501/tcp
TZ - Specifies the server timezone - Default: UTCPORT - Specifies port number - Default: 8501/app - streamlit app directory -> your streamlit app folder must contain a 'streamlit_app.py' as the main streamlit app8501/tcp - HTTP Port - This project is licensed under the GNU General Public License - see the gpl-3.0 for details.
Content type
Image
Digest
sha256:a597c444a…
Size
213.5 MB
Last updated
6 days ago
docker pull 3x3cut0r/streamlit