diff options
author | rhee876527 <26869897+rhee876527@users.noreply.github.com> | 2024-10-17 17:00:15 +0300 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-10-17 19:14:33 +0200 |
commit | 4ef1c706f825ccb1190ebb2cfbf6a16db6b051d0 (patch) | |
tree | 9826407eba7672ab20b1f62ba89234007751dbba /Dockerfile | |
parent | cf7627557ab29e31efbf4a0719d1083592e22242 (diff) | |
download | searxng-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
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 10 |
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 |