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"] 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