-
Notifications
You must be signed in to change notification settings - Fork 1
/
dev_ocr.Dockerfile
35 lines (28 loc) · 1.02 KB
/
dev_ocr.Dockerfile
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
# syntax=docker/dockerfile:1
FROM ubuntu:20.04
LABEL [email protected]
ENV TZ=Europe/Moscow \
DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
curl \
git \
software-properties-common \
libgl1-mesa-glx \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/* /tmp/apt-packages
RUN add-apt-repository ppa:deadsnakes/ppa \
&& add-apt-repository universe \
&& rm -rf /var/lib/apt/lists/* /tmp/apt-packages
# python3.9-distutils \
RUN apt-get update && apt-get install -y \
python3.8 \
python3-pip \
&& rm -rf /var/lib/apt/lists/* /tmp/apt-packages
# RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.8
WORKDIR /app
# RUN /bin/bash -c ". ./.env/bin/activate" && \
RUN python3.8 -m pip install --no-cache-dir -U https://paddle-qa.bj.bcebos.com/CompileService/train/aarch64/paddlepaddle-2.3.2-cp38-cp38-linux_aarch64.whl
RUN python3.8 -m pip install --no-cache-dir "paddleocr>=2.0.1" \
-U "PyMuPDF==1.21.1"
ENV PYTHONPATH=/app
ENTRYPOINT ["/bin/bash"]