Skip to content

Commit

Permalink
Added server port
Browse files Browse the repository at this point in the history
  • Loading branch information
dschiese committed Aug 2, 2024
1 parent b4917ee commit 5d92605
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 \
"]

0 comments on commit 5d92605

Please sign in to comment.