janar's picture
bunch of fixes to get it to work with a single docker cotainer. necessary evil for now.
e258771
raw
history blame
286 Bytes
#!/bin/bash
python -m uvicorn "main:app" "--host" "0.0.0.0" "--port" "8080" &
#active wait- container won't quit
while ! timeout 1 bash -c "echo > /dev/tcp/localhost/8080"; do sleep 5; done
export be_url=`awk 'END{print "http://"$1":8080"}' /etc/hosts`
python -m streamlit run app.py