Skip to content

Commit

Permalink
Outsourced server port
Browse files Browse the repository at this point in the history
  • Loading branch information
dschiese committed May 21, 2024
1 parent 446783b commit a02d9c7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM python:3.9-slim

ENV SERVER_PORT=8501

RUN apt-get update && apt-get install -y \
build-essential \
curl \
Expand All @@ -13,8 +15,8 @@ WORKDIR /app

RUN python3 -m pip install -r requirements.txt

EXPOSE 8501
EXPOSE $SERVER_PORT

HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health

ENTRYPOINT [ "streamlit run explanation_frontend.py --server.port=8501 --server.address=0.0.0.0" ]
ENTRYPOINT [ "streamlit run explanation_frontend.py --server.port=$SERVER_PORT --server.address=0.0.0.0" ]

0 comments on commit a02d9c7

Please sign in to comment.