From 446783b44105166b020a1471bcebb5909b3cc958 Mon Sep 17 00:00:00 2001 From: Dennis Schiese Date: Tue, 21 May 2024 14:56:46 +0200 Subject: [PATCH] Dockerfile is needed to build a image --- Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1ab9f94 --- /dev/null +++ b/Dockerfile @@ -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" ] \ No newline at end of file