Skip to content

Commit

Permalink
Port change (#21)
Browse files Browse the repository at this point in the history
* port change

* Dockerfile port change
  • Loading branch information
vasiliadi authored Apr 29, 2024
1 parent 29d9852 commit 028dc74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ RUN pip install --no-cache /wheels/*
RUN apt-get update && apt-get install --no-install-recommends -y ffmpeg=7:5.1.4-0+deb12u1 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
HEALTHCHECK CMD curl --fail http://localhost:80/_stcore/health
ENTRYPOINT ["streamlit", "run", "streamlit_app.py", "--server.port=80", "--server.address=0.0.0.0"]
HEALTHCHECK CMD curl --fail http://localhost:8080/_stcore/health
ENTRYPOINT ["streamlit", "run", "streamlit_app.py", "--server.port=8080", "--server.address=0.0.0.0"]
5 changes: 3 additions & 2 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ services:
context: .
dockerfile: Dockerfile
container_name: streamlit
# volumes:
# - ./:/app
volumes:
- ./:/app
env_file:
- path: ./.streamlit/secrets.toml
required: false
ports:
- 80:80
entrypoint: ["streamlit", "run", "streamlit_app.py", "--server.port=80", "--server.address=0.0.0.0"]
restart: always

0 comments on commit 028dc74

Please sign in to comment.