Skip to content

Commit a006e7f

Browse files
⬆️ Use zxing from upstream (#229)
1 parent 044ba12 commit a006e7f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

paperless-ngx/Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,14 @@ RUN --mount=type=cache,target=/root/.cache/uv/,id=uv-cache \
168168
&& apt-get install --yes --quiet --no-install-recommends ${BUILD_PACKAGES} \
169169
&& source $HOME/.local/bin/env \
170170
&& uv pip install --system --no-cache-dir --upgrade wheel \
171-
&& echo "Installing Python requirements" \
172-
&& uv pip install --system --requirement requirements.txt \
173171
&& echo "Installing ZXing" \
174-
&& uv pip install --system zxing-cpp \
172+
&& curl --fail --silent --no-progress-meter --show-error --location --remote-name-all --parallel --parallel-max 4 \
173+
https://github.com/paperless-ngx/builder/releases/download/psycopg-3.2.4/psycopg_c-3.2.4-cp312-cp312-linux_x86_64.whl \
174+
https://github.com/paperless-ngx/builder/releases/download/psycopg-3.2.4/psycopg_c-3.2.4-cp312-cp312-linux_aarch64.whl \
175+
https://github.com/paperless-ngx/builder/releases/download/zxing-2.3.0/zxing_cpp-2.3.0-cp312-cp312-linux_aarch64.whl \
176+
https://github.com/paperless-ngx/builder/releases/download/zxing-2.3.0/zxing_cpp-2.3.0-cp312-cp312-linux_x86_64.whl \
177+
&& echo "Installing Python requirements" \
178+
&& uv pip install --system --find-links . --requirement requirements.txt \
175179
&& echo "Installing NLTK data" \
176180
&& python3 -W ignore::RuntimeWarning -m nltk.downloader -d "/usr/share/nltk_data" snowball_data \
177181
&& python3 -W ignore::RuntimeWarning -m nltk.downloader -d "/usr/share/nltk_data" stopwords \
@@ -180,6 +184,7 @@ RUN --mount=type=cache,target=/root/.cache/uv/,id=uv-cache \
180184
&& apt-get -y purge ${BUILD_PACKAGES} \
181185
&& apt-get -y autoremove --purge \
182186
&& apt-get clean --yes \
187+
&& rm -rf *.whl \
183188
&& rm -rf /var/lib/apt/lists/* \
184189
&& rm -rf /tmp/* \
185190
&& rm -rf /var/tmp/* \

0 commit comments

Comments
 (0)