I am am attempting to follow the Streamlit Docker tutorial on my local machine. I have copied and pasted the Dockerfile verbatim and am running the docker build -t streamlit .
from the same directory as the Dockerfile.
This command returns the following error.
[+] Building 0.1s (2/2) FINISHED docker:desktop-linux
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 536B 0.0s
Dockerfile:23
--------------------
21 |
22 | ENTRYPOINT ["streamlit", "run", "streamlit_app.py", "--server.port=8501",
23 | >>> "--server.address=0.0.0.0"]
24 |
--------------------
ERROR: failed to solve: dockerfile parse error on line 23: unknown instruction: "--server.address=0.0.0.0"]
It appears that Docker is unable to understand the --server.address=0.0.0.0
argument to streamlit
in the ENTRYPOINT
statement. On other attempts (with my own toy code), it threw a similar error for --server.port=8501
. I am running Python version 3.9
.