-
Notifications
You must be signed in to change notification settings - Fork 149
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (38 loc) · 1.24 KB
/
Dockerfile
File metadata and controls
43 lines (38 loc) · 1.24 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
40
41
42
43
FROM ubuntu:24.04
WORKDIR /OCRFlux
ENV LANG=en_US.UTF-8 \
PIP_ROOT_USER_ACTION=ignore \
PIP_BREAK_SYSTEM_PACKAGES=true \
PIP_NO_CACHE_DIR=true \
PIP_DISABLE_PIP_VERSION_CHECK=true \
PYTHONPATH=/OCRFlux
SHELL ["/bin/bash", "-c"]
RUN --mount=type=bind,source=./,target=/builder \
cp -a /builder/. /OCRFlux/ && \
set -o pipefail && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
ca-certificates \
curl \
fonts-crosextra-caladea \
fonts-crosextra-carlito \
gsfonts \
lcdf-typetools \
locales \
msttcorefonts \
poppler-utils \
poppler-data \
python3.12-dev \
python3.12-full \
software-properties-common \
ttf-mscorefonts-installer && \
locale-gen en_US.UTF-8 && \
curl https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py && \
python3.12 /tmp/get-pip.py && \
python3.12 -m pip install . --find-links https://flashinfer.ai/whl/cu124/torch2.5/flashinfer/ && \
rm -rf ./* \
/var/lib/apt/lists/* \
/tmp/* \
/root/.cache/pip &&\
find /var/log /var/cache -type f -delete
ENTRYPOINT ["python3.12", "-m", "ocrflux.pipeline"]