From b981d6e1051f0a0543ee71baf7517469839fabc9 Mon Sep 17 00:00:00 2001 From: dorian Date: Fri, 21 Jun 2024 15:06:00 +0200 Subject: [PATCH] adding CI and Dockerfile --- src/Dockerfile | 11 +++++++++++ src/back/load_csv.py | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 src/Dockerfile diff --git a/src/Dockerfile b/src/Dockerfile new file mode 100644 index 0000000..7107b12 --- /dev/null +++ b/src/Dockerfile @@ -0,0 +1,11 @@ +FROM python:3.9 + +WORKDIR /app +COPY . . + +RUN pip install --upgrade pip +RUN pip install streamlit matplotlib pandas scikit-learn + +EXPOSE 8501 + +ENTRYPOINT ["streamlit", "run", "home.py", "--server.port=8501", "--server.address=0.0.0.0"] diff --git a/src/back/load_csv.py b/src/back/load_csv.py index 03db63a..44828e8 100644 --- a/src/back/load_csv.py +++ b/src/back/load_csv.py @@ -17,4 +17,4 @@ def csv_value(): # Related Non-Motorist -> 166642 # Non-Motorist Substance Abuse -> 167788 # Circumstance -> 140746 - return df + return df \ No newline at end of file