generated from wiktorlazarski/ai-awesome-project-template
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add docker file for web_checking.py (#31)
* 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
1 parent
c1b4b9b
commit ebca50e
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters