Skip to content

Commit

Permalink
feat: start Streamlit Dockerfile process
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-twhite committed Nov 27, 2024
1 parent bfa0d80 commit e6d2e52
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM python:3.9-slim

WORKDIR /app

RUN apt-get update && apt-get install -y \
build-essential \
curl \
software-properties-common \
git \
&& rm -rf /var/lib/apt/lists/*

RUN git clone https://github.com/streamlit/streamlit-example.git .

RUN pip3 install -e ".[streamlit]"

EXPOSE 8501

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

ENTRYPOINT ["streamlit", "run", "demo_app/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]

0 comments on commit e6d2e52

Please sign in to comment.