Skip to content

Commit

Permalink
Builds qpdf 11.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
stumpylog committed Nov 7, 2023
1 parent 77c7bdf commit b5a9c40
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions qpdf.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ARG COMMON_BUILD_PACKAGES="\
packaging-dev \
libtool"

ENV DEB_BUILD_OPTIONS="terse nocheck nodoc parallel=2"
ENV DEB_BUILD_OPTIONS="terse nocheck nodoc parallel=8"

WORKDIR /usr/src

Expand Down Expand Up @@ -60,15 +60,17 @@ RUN set -eux \
&& echo "Building amd64" \
&& dpkg-buildpackage --build=binary --unsigned-source --unsigned-changes --post-clean \
&& echo "Removing debug files" \
&& rm -f ../*dbgsym*
&& rm -f ../*dbgsym* \
&& echo "Get build package versions" \
&& dpkg-query -f '${Package;-40}${Version}\n' -W > ../pkg-list.txt

#
# Stage: aarch64-builder
# Purpose:
# - Sets aarch64 specific environment
# - Builds qpdf for aarch64 (cross compile)
#
FROM amd64-builder as aarch64-builder
FROM pre-build as aarch64-builder

ARG ARM64_PACKAGES="\
crossbuild-essential-arm64 \
Expand All @@ -88,4 +90,17 @@ RUN set -eux \
&& echo "Building arm64" \
&& dpkg-buildpackage --build=binary --unsigned-source --unsigned-changes --post-clean --host-arch arm64 \
&& echo "Removing debug files" \
&& rm -f ../*dbgsym*
&& rm -f ../*dbgsym* \
&& echo "Get build package versions" \
&& dpkg-query -f '${Package;-40}${Version}\n' -W > ../pkg-list.txt

FROM debian:bookworm-slim as package

WORKDIR /usr/src/qpdf

COPY --from=amd64-builder /usr/src/*.deb .
COPY --from=amd64-builder /usr/src/pkg-list.txt amd64-pkg-list.txt
COPY --from=aarch64-builder /usr/src/*.deb .
COPY --from=aarch64-builder /usr/src/pkg-list.txt aarch64-pkg-list.txt

ENTRYPOINT [ "/usr/bin/bash" ]

0 comments on commit b5a9c40

Please sign in to comment.