From a2078b687d0a45b305aa8716199e222c40612830 Mon Sep 17 00:00:00 2001 From: Rohan Rustagi <110477025+RohanRusta21@users.noreply.github.com> Date: Wed, 24 Apr 2024 07:33:50 +0000 Subject: [PATCH 1/2] Added Dockerfile for Streamlit UI Web Application --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..fabf42e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.10-slim-buster +MAINTAINER "Rohan Rustagi" +WORKDIR /app +ADD . /app +RUN pip install --no-cache-dir -r requirements.txt +EXPOSE 8501 +CMD ["streamlit", "run", "app.py"] From 89da0a0a1e7615de59632e8e4c9ac37f02083760 Mon Sep 17 00:00:00 2001 From: Rohan Rustagi <110477025+RohanRusta21@users.noreply.github.com> Date: Wed, 24 Apr 2024 07:42:08 +0000 Subject: [PATCH 2/2] Added Dockerfile & Updated README.md --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 11e6989..0e9a454 100644 --- a/README.md +++ b/README.md @@ -88,4 +88,13 @@ python3 school_center.py sample_data/schools_grade12_2081.tsv sample_data/center 🚀 24-04-22 20:40:27 - __main__ - INFO - Total remaining capacity across all centers: 161 🚀 24-04-22 20:40:27 - __main__ - INFO - Students not assigned: 0 +``` + +### Steps to use Docker + +For example , we can take Tag=1 + +```shell +docker build -t school-centre: . +docker run -itd -p 8501:8501 school-centre: ``` \ No newline at end of file