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?
Thanks for the response! I made that change and it gave me a more helpful error message:
docker: Error response from daemon: OCI runtime create failed: container_linux.go:346: starting container process caused "exec: \"streamlit\": executable file not found in $PATH": unknown.
ERRO[0001] error waiting for container: context canceled
I suppose this means that my conda environment is not getting installed/activated properly. From what I understand, they can be tricky to configure with Docker. I’…
For anyone else who may run into the same issue, here was my solution:
I was not able to get my conda environment working with Docker, so I resorted to using pip with the following requirements.txt file:
altair==3.3.0
joblib==0.13.2
pandas==0.25.1
numpy==1.17.2
scikit-learn==0.21.3
matplotlib==3.1.1
streamlit==0.51.0
Then, I created a simpler Dockerfile, inspired by this blog :
# base image
FROM python:3.7
# streamlit-specific commands
RUN mkdir -p /root/.streamlit
RUN bash -c 'echo -e "\
[g…