Hi,
I“m trying to dockerize an app made with streamlit but I“ve tried for four days so far and nothing has worked for me.
It takes ages to build the image and when I try to run it, it returns: /bin/sh: 1: streamlit: not found .
This is my docker file (This is my first time using docker )
Not actually but IĀ“m working with conda. Would it be the same if instead of āenvironment.ymlā I try to install ārequirements.txtā with pip?
I“ve tried with pip and I get the same error so I don“t really know how to handle this pip/conda thing
IĀ“ve just follow the new doc and I get this error when I try to do it with my project: docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: āstreamlitā: executable file not found in $PATH: unknown.
Have you tried following the doc (i.e. using the exact Dockerfile and docker run command in the doc and using pip and requirements.txt instead of conda?
The problem is that it canāt find the streamlit executable. In the case of installing streamlit with conda, the streamlit executable will be in miniconda3/bin/streamlit
@Dynamo-github
Welcome to the community.
Please give us some more details about your specific problem or share a link to a public github repository so we can take a look.
I am not able to keep the docker container with my streamlit app running. The example works fine, but when I pull data using snowflake.connector, the container closes as soon as the query completes (and before all the other stuff I have in my app).
in Dockerfile: FROM python:3.9-slim
in requirements.txt: snowflake-connector-python~=2.7.2
I tried putting a decorator above the function to pull the data (@st.experimental_memo(persist=True))
I tried ChatGPTās idea to add a while True: sleep(1) at the end of the script.