i was able to deploy via AWS(docker)
and heroku using the normal way
how the normal way at heroku and using docker.
my files are as follows
- Do I need to expose the port since heroku auto-assign ports? How do I do it?
- How do I execute setup.sh at Docker?
Better still is there a guide that I can follow?
streamlit==0.63 pandas==1.0.5 numpy==1.19 scikit-learn==0.22 matplotlib==3.2.2
mkdir -p ~/.streamlit/ echo "\ [general]\n\ email = \"email@example.com\"\n\ " > ~/.streamlit/credentials.toml echo "\ [server]\n\ headless = true\n\ enableCORS=false\n\ port = $PORT\n\ " > ~/.streamlit/config.toml
web: sh setup.sh && streamlit run app.py
exposing default port for streamlit
making directory of app
copy over requirements
COPY requirements.txt ./requirements.txt
install pip then packages
RUN pip install -r requirements.txt
copying all files over
COPY . .
cmd to launch app when container is run
CMD streamlit run app.py