Skip to content

Commit

Permalink
feat: add docker file for web_checking.py (#31)
Browse files Browse the repository at this point in the history
* feat: add docker file for web_checking.py

* feat: add entrypoint file

* feat: adjust entrypoint command to utilize PORT env var

* fix: apply review suggestions

* feat: add website link to Readme file

* fix: correct the typo in readme

Co-authored-by: Wiktor Łazarski <[email protected]>

---------

Co-authored-by: Wiktor Łazarski <[email protected]>
  • Loading branch information
Szuumii and wiktorlazarski authored Sep 22, 2023
1 parent c1b4b9b commit ebca50e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# app/Dockerfile

FROM python:3.7-slim

EXPOSE ${PORT}

WORKDIR /app

RUN apt-get update && apt-get install -y \
build-essential \
ffmpeg \
libsm6 \
libxext6 \
curl \
software-properties-common \
git \
&& rm -rf /var/lib/apt/lists/*

RUN git clone https://github.com/wiktorlazarski/head-segmentation.git .

RUN pip3 install -e .

ENTRYPOINT exec python -m streamlit run apps/web_checking.py --server.port=$PORT --server.address=0.0.0.0
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ ______________________________________________________________________

</div>

## 🔍 Preview

Feel free to checkout our Streamlit application at https://head-segmentation-d4mc3a3f3q-lm.a.run.app/

## 💎 Installation with `pip`

Installation is as simple as running:
Expand Down

0 comments on commit ebca50e

Please sign in to comment.