ragtiquicIA / scripts /docker_run_with_secrets.sh
Santiago Casas
running HF streamlit with files
cf450f7
#!/usr/bin/env bash
set -euo pipefail
# Generates .env.docker from .streamlit/secrets.toml and runs the container.
python3 scripts/helpers/secrets_toml_to_env.py --in .streamlit/secrets.toml --out .env.docker >/dev/null
PORT="${PORT:-18502}"
IMAGE="${IMAGE:-ragtiquicia:local}"
exec docker run --rm -p "${PORT}:8501" --env-file .env.docker "${IMAGE}"