Fix jbig2enc download: ADD doesn't expand shell subcommands

Use curl in a RUN instead of ADD so $(dpkg --print-architecture)
is evaluated by the shell.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Erich Blume 2026-04-08 16:44:11 -07:00
commit fba339e543

View file

@ -65,8 +65,10 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
&& rm -rf /var/lib/apt/lists/*
# Install jbig2enc from upstream prebuilt deb
ADD https://github.com/paperless-ngx/builder/releases/download/jbig2enc-0.29/jbig2enc_0.29-1_$(dpkg --print-architecture).deb /tmp/jbig2enc.deb
RUN dpkg -i /tmp/jbig2enc.deb && rm /tmp/jbig2enc.deb || true
RUN curl -fsSL "https://github.com/paperless-ngx/builder/releases/download/jbig2enc-0.29/jbig2enc_0.29-1_$(dpkg --print-architecture).deb" -o /tmp/jbig2enc.deb \
&& dpkg -i /tmp/jbig2enc.deb \
&& rm /tmp/jbig2enc.deb \
|| true
WORKDIR /usr/src/paperless