Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Dockerfile for Streamlit UI Web Application #60

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:<Tag> .
docker run -itd -p 8501:8501 school-centre:<Tag>
```