Revert "Fix for broken docker builds"

This reverts commit 4ef1c706f8.
This commit is contained in:
Markus Heiser 2024-10-28 08:18:13 +01:00 committed by Markus Heiser
parent 163031c394
commit f63f97c56c

View file

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