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

feat: add docker file for web_checking.py #31

Merged
merged 6 commits into from
Sep 22, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions Dockerfile
wiktorlazarski marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# app/Dockerfile

FROM python:3.9-slim
wiktorlazarski marked this conversation as resolved.
Show resolved Hide resolved

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/*
wiktorlazarski marked this conversation as resolved.
Show resolved Hide resolved

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

RUN pip3 install -e .

EXPOSE 8501

HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health

ENTRYPOINT ["streamlit", "run", "apps/web_checking.py", "--server.port=8501", "--server.address=0.0.0.0"]
wiktorlazarski marked this conversation as resolved.
Show resolved Hide resolved
Loading