Skip to content

Commit

Permalink
Merge pull request #42 from smilebasti/main
Browse files Browse the repository at this point in the history
Create Dockerfile for container image
  • Loading branch information
chrieke committed Apr 20, 2024
2 parents 961aae5 + b5fc7c7 commit fee1fb3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM python:3.11-slim

RUN apt-get update && apt-get install -y \
curl \
&& rm -rf /var/lib/apt/lists/*

COPY streamlit-prettymapp /app/streamlit-prettymapp/

WORKDIR /app

RUN pip3 install -r streamlit-prettymapp/requirements.txt

EXPOSE 8501

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

ENTRYPOINT ["streamlit", "run", "streamlit-prettymapp/app.py", "--server.port=8501", "--server.address=0.0.0.0"]
2 changes: 1 addition & 1 deletion streamlit-prettymapp/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
streamlit==1.32.2
streamlit-image-select==0.6.0
-e ../prettymapp
prettymapp

0 comments on commit fee1fb3

Please sign in to comment.