Getting ready to deploy on k8s
In preparation to deploy on k8s (https://github.com/CodeForPhilly/civic-cluster/issues/6), this PR:
-
Changed: moves configs from setup.sh into TOML files in
./.streamlit/to centralize them -
Changed: Dockerfile base image is slim-buster. This one line cuts the image size in half, from 1.37GB to 630MB
-
Changed: Dockerfile no longer reference script.sh, configs moved to .streamlit dir
-
Changed: Dockerfile CMD command doesn't specific server.port, which is already specified in ./streamlit/config.toml
-
Changed: Dockerfile add -q flag to pip install to make build logs shorter
-
Added: a .dockerignore to avoid copying unneeded files into the docker image
FYI this DOES NOT block deploying on k8s, all these changes are cleanup/performance improvements, e.g. nice-to-haves