Skip to content

Commit

Permalink
Dockerfile is needed to build a image
Browse files Browse the repository at this point in the history
  • Loading branch information
dschiese committed May 21, 2024
1 parent dc81a81 commit 446783b
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

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

# copy the application files
COPY . /app
WORKDIR /app

RUN python3 -m pip install -r requirements.txt

EXPOSE 8501

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

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

0 comments on commit 446783b

Please sign in to comment.