2026-01-29 18:10:59 +00:00
|
|
|
FROM debian:bookworm-slim@sha256:56ff6d36d4eb3db13a741b342ec466f121480b5edded42e4b7ee850ce7a418ee AS builder
|
2021-10-27 23:17:41 +00:00
|
|
|
|
|
|
|
|
RUN apt-get update
|
2024-08-20 17:07:59 +00:00
|
|
|
RUN apt-get install -y build-essential autoconf libxml2-dev libssl-dev zlib1g-dev curl git
|
2021-10-27 23:17:41 +00:00
|
|
|
|
2024-08-20 17:07:59 +00:00
|
|
|
# Build bomutils
|
|
|
|
|
RUN git clone -b master \
|
2024-10-29 20:22:39 +00:00
|
|
|
--no-tags --progress \
|
2024-08-20 17:07:59 +00:00
|
|
|
--no-recurse-submodules https://github.com/hogliux/bomutils.git && \
|
|
|
|
|
cd bomutils && git reset --hard c41ad8b67d82a0071245ce8a5069023d39a885b8 && \
|
|
|
|
|
make && make install
|
2021-10-27 23:17:41 +00:00
|
|
|
|
|
|
|
|
# Install xar
|
|
|
|
|
RUN curl -L https://github.com/mackyle/xar/archive/refs/tags/xar-1.6.1.tar.gz > xar.tar.gz && \
|
|
|
|
|
echo "5e7d50dab73f5cb1713b49fa67c455c2a0dd2b0a7770cbc81b675e21f6210e25 xar.tar.gz" | sha256sum --check && \
|
|
|
|
|
tar -xzf xar.tar.gz
|
2024-09-16 16:05:28 +00:00
|
|
|
|
2021-10-27 23:17:41 +00:00
|
|
|
# Note this needs patching due to newer version of OpenSSL
|
|
|
|
|
# See https://github.com/mackyle/xar/pull/23
|
|
|
|
|
COPY patch.txt .
|
|
|
|
|
RUN cd xar-xar-1.6.1/xar && patch < ../../patch.txt && autoconf && ./configure && make && make install
|
|
|
|
|
|
2026-01-29 18:10:59 +00:00
|
|
|
FROM debian:bookworm-slim@sha256:56ff6d36d4eb3db13a741b342ec466f121480b5edded42e4b7ee850ce7a418ee
|
2021-10-27 23:17:41 +00:00
|
|
|
|
2024-09-16 16:05:28 +00:00
|
|
|
RUN apt-get update && dpkg --add-architecture i386 && apt-get upgrade -y && apt-get install -y --no-install-recommends libxml2 ca-certificates && rm -rf /var/lib/apt/lists/*
|
2021-10-27 23:17:41 +00:00
|
|
|
COPY --from=builder /usr/bin /usr/bin/
|
|
|
|
|
COPY --from=builder /usr/local/bin /usr/local/bin/
|
|
|
|
|
COPY --from=builder /usr/local/lib /usr/local/lib/
|