diff --git a/Dockerfile b/Dockerfile index 2236712..fae7b2d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,7 @@ FROM ubuntu:22.04 # parameters that might be provided at runtime by using the --env option ENV BACKEND_URL="" +ENV SERVER_PORT=8501 # install dependencies ENV DEBIAN_FRONTEND=noninteractive @@ -21,6 +22,8 @@ EXPOSE $SERVER_PORT # set all environment variables ENTRYPOINT ["sh", "-c", "\ export BACKEND_URL=$BACKEND_URL \ + export SERVER_PORT=$SERVER_PORT \ && echo \"BACKEND_URL: $BACKEND_URL\" \ + && echo \"SERVER_PORT: $SERVER_PORT\" \ && streamlit run client.py --server.port=$SERVER_PORT --server.address=0.0.0.0 \ "]