Browse Source

[fix] docker: alpine - install apk py3-pydantic-core

Alpine Linux uses musl libc (instead of glibc). However, there is no pre-build
of the pydantic-core python package for musl lib on armv7.  Alternatively this
patch installs py3-pydantic-core from Alpine packages [1]

[1] https://pkgs.alpinelinux.org/package/edge/community/armv7/py3-pydantic-core

- closes: https://github.com/searxng/searxng/issues/3887

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Markus Heiser 6 months ago
parent
commit
5332d3a0b8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Dockerfile

+ 1 - 0
Dockerfile

@@ -44,6 +44,7 @@ RUN apk add --no-cache -t build-dependencies \
     uwsgi \
     uwsgi \
     uwsgi-python3 \
     uwsgi-python3 \
     brotli \
     brotli \
+    py3-pydantic-core \
  && pip3 install --break-system-packages --no-cache -r requirements.txt \
  && pip3 install --break-system-packages --no-cache -r requirements.txt \
  && apk del build-dependencies \
  && apk del build-dependencies \
  && rm -rf /root/.cache
  && rm -rf /root/.cache