Skip to content

Commit e75d919

Browse files
committed
ci(docker): switch to pip
1 parent 64206de commit e75d919

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

pdf/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ RUN apk upgrade --no-cache \
1919
git=2.49.1-r0 \
2020
jq=1.8.1-r0 \
2121
libreoffice=25.2.5.2-r0 \
22-
ocrmypdf=16.4.3-r0 \
2322
openjdk21-jre-headless=21.0.9_p10-r0 \
2423
pandoc-cli=3.6.4-r0 \
2524
pdfgrep=2.2.0-r1 \
@@ -30,6 +29,12 @@ RUN apk upgrade --no-cache \
3029
&& apk cache --no-cache clean \
3130
&& rm -rf /var/cache/apk/*
3231

32+
COPY requirements.txt /tmp/requirements.txt
33+
34+
RUN pipx ensurepath --global \
35+
&& xargs -a /tmp/requirements.txt -n 1 pipx install --global \
36+
&& rm -f /tmp/requirements.txt
37+
3338
RUN VERSION=$(curl -s -S -f https://gitlab.com/api/v4/projects/5024297/releases | jq -r '.[0].tag_name') \
3439
&& mkdir -p /opt/pdftk/lib \
3540
&& curl -s -S -f -o /opt/pdftk/lib/pdftk-all.jar \

pdf/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ocrmypdf==16.12.0

0 commit comments

Comments
 (0)