1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-22 04:01:40 +01:00

Fix for broken docker builds

Add temporary fix to broken docker builds in anticipation of yet to be released pydantic version v2.24.1
This commit is contained in:
rhee876527 2024-10-17 17:00:15 +03:00 committed by Markus Heiser
parent cf7627557a
commit 4ef1c706f8

View File

@ -44,8 +44,14 @@ RUN apk add --no-cache -t build-dependencies \
uwsgi \ uwsgi \
uwsgi-python3 \ uwsgi-python3 \
brotli \ brotli \
&& pip3 install --break-system-packages --no-cache -r requirements.txt \ # For 32bit arm architecture install pydantic from the alpine repos instead of requirements.txt
&& apk del build-dependencies \ 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 && rm -rf /root/.cache
COPY --chown=searxng:searxng dockerfiles ./dockerfiles COPY --chown=searxng:searxng dockerfiles ./dockerfiles