forked from bluekidds/layout_classification
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
27 lines (16 loc) · 666 Bytes
/
dockerfile
File metadata and controls
27 lines (16 loc) · 666 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# app/Dockerfile
FROM python:3.9-slim
EXPOSE 8501
WORKDIR /app
RUN apt-get update && apt-get install -y \
build-essential \
software-properties-common \
git \
python3-opencv \
&& rm -rf /var/lib/apt/lists/*
RUN pip install layoutparser torchvision && pip install "git+https://github.com/facebookresearch/detectron2.git@v0.5#egg=detectron2"
RUN pip install pip install "layoutparser[ocr]"
RUN git clone https://github.com/smalloshin/layout_classification.git .
RUN pip install "pinferencia[streamlit]"
RUN pip3 install -r requirements.txt
ENTRYPOINT ["streamlit", "run", "app/main.py", "--server.port=8501", "--server.address=0.0.0.0"]