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:
parent
d036782b43
commit
fba339e543
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue