summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhee876527 <26869897+rhee876527@users.noreply.github.com>2024-10-17 17:00:15 +0300
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-10-17 19:14:33 +0200
commit4ef1c706f825ccb1190ebb2cfbf6a16db6b051d0 (patch)
tree9826407eba7672ab20b1f62ba89234007751dbba
parentcf7627557ab29e31efbf4a0719d1083592e22242 (diff)
downloadsearxng-4ef1c706f825ccb1190ebb2cfbf6a16db6b051d0.tar.gz
searxng-4ef1c706f825ccb1190ebb2cfbf6a16db6b051d0.zip
Fix for broken docker builds
Add temporary fix to broken docker builds in anticipation of yet to be released pydantic version v2.24.1
-rw-r--r--Dockerfile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 2a4d39591..c12391276 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -44,8 +44,14 @@ RUN apk add --no-cache -t build-dependencies \
uwsgi \
uwsgi-python3 \
brotli \
- && pip3 install --break-system-packages --no-cache -r requirements.txt \
- && apk del build-dependencies \
+# For 32bit arm architecture install pydantic from the alpine repos instead of requirements.txt
+ARG TARGETARCH
+RUN if [ "$TARGETARCH" = "arm" ]; then \
+ apk add --no-cache py3-pydantic && pip install --no-cache --break-system-packages -r <(grep -v '^pydantic' requirements.txt); \
+ else \
+ pip install --no-cache --break-system-packages -r requirements.txt; \
+ fi
+ RUN apk del build-dependencies \
&& rm -rf /root/.cache
COPY --chown=searxng:searxng dockerfiles ./dockerfiles