-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (26 loc) · 1.06 KB
/
Copy pathDockerfile
File metadata and controls
40 lines (26 loc) · 1.06 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
# FROM ubuntu:20.04
# COPY / /app
# WORKDIR /app
# ENV DEBIAN_FRONTEND="noninteractive"
# RUN apt-get update && apt-get install -y software-properties-common build-essential
# RUN add-apt-repository -y ppa:deadsnakes/ppa && apt install -y python3.6 && apt install -y python3.6-venv python3.6-dev
# ENV VIRTUAL_ENV=/opt/venv
# RUN python3.6 -m venv $VIRTUAL_ENV
# ENV PATH="$VIRTUAL_ENV/bin:$PATH"
# RUN apt install -y libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev
# RUN pip install --upgrade pip setuptools wheel && apt-get install -y poppler-utils
# RUN pip install -r requirements.txt
# RUN pip cache purge
FROM anuvaadio/anuvaad-layout-detector-prima:86-9745dcf5d
#FROM 6eb1218a361a
COPY / /app
WORKDIR /app
RUN pip install -r requirements.txt
RUN apt-get install libleptonica-dev
RUN apt install tesseract-ocr -y
RUN python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'
RUN apt install -y curl
COPY start.sh /usr/bin/start.sh
RUN chmod +x /usr/bin/start.sh
#CMD ["python", "app.py"]
ENTRYPOINT ["/bin/bash","/usr/bin/start.sh"]