File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -24,26 +24,27 @@ sudo -E XDG_RUNTIME_DIR= podman build --progress=plain \
24
24
autoconf automake binutils cmake gcc gcc-c++ git glibc-devel glibc-headers glibc-static kernel-devel libtool libstdc++-devel make ninja-build pkgconfig zlib-devel \
25
25
python3.11 python3.11-pip python3.11-devel \
26
26
libjpeg-turbo-devel libpng-devel qpdf-devel json-devel utf8cpp-devel loguru-devel cxxopts-devel \
27
+ uv pybind11 wheel \
27
28
&& dnf clean all
28
29
29
30
WORKDIR /src
30
31
31
- COPY ./dist/*.tar.gz .
32
+ COPY ./ /src
33
+
34
+ RUN python3.11 build.py
35
+ RUN uv build
32
36
33
37
ENV USE_SYSTEM_DEPS=on
34
38
35
39
# pre-install build requirements + wheel for "--no-build-isolation"
36
40
# build docling-parse wheel in an isolated network namespace (unshare -rn)
37
41
# install the wheel and its dependencies
38
- RUN pip3.11 install uv pybind11 wheel \
39
- && unshare -rn pip3.11 wheel \
42
+ RUN unshare -rn pip3.11 wheel \
40
43
--no-deps --no-build-isolation -w /dist/ \
41
44
/src/docling_parse*.tar.gz \
42
45
&& pip3.11 install /dist/docling_parse*.whl \
43
46
&& python3.11 -c 'from docling_parse.pdf_parsers import pdf_parser_v1, pdf_parser_v2'
44
47
45
- COPY ./tests /src/tests
46
-
47
48
RUN pip3.11 install pytest \
48
49
&& pytest
49
50
EOF
You can’t perform that action at this time.
0 commit comments