Streamlit is a great tool to build machine learning demo. This repo contains a scaffold of a Streamlit app with support for deploying the app to AWS' ECS, using an existing domain name.
- Docker.
- NodeJS. We recommend using
nvm
. - A domain name already set up via AWS Route53's Hosted zones.
Build and run the docker image.
docker build -t stapp .
docker run -p 8501:8501 -d stapp
Now, open the streamlit app: http://localhost:8501.
Make sure you have Pulumi install and make the changes in the config file Pulumi.dev.yaml,
in particular change the domain name.
cd deploy
pulumi up -s dev
Deployment is automatically kicked off when there's a push to main.
See this config file.