We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac4370a commit ced689dCopy full SHA for ced689d
1 file changed
Dockerfile
@@ -21,9 +21,12 @@ ENV CERTS="{}" \
21
RUN apk add --no-cache python3 py3-netifaces \
22
&& if [ "${PG_MAJOR:-0}" -ge 12 ]; then \
23
apk add --no-cache --virtual .pgvector-build build-base linux-headers ca-certificates \
24
- && for v in 23 22 21 20 19; do \
25
- apk add --no-cache --virtual .pgvector-build clang${v} llvm${v} && break; \
26
- done \
+ && CLANG_PKG="$(apk search -x 'clang[0-9]*' | sort -V | tail -1)" \
+ && test -n "$CLANG_PKG" \
+ && VER="${CLANG_PKG#clang}" \
27
+ && apk add --no-cache --virtual .pgvector-build \
28
+ "clang${VER}" \
29
+ "llvm${VER}" \
30
&& wget -qO- "https://github.com/pgvector/pgvector/archive/refs/tags/v${PGVECTOR_VERSION}.tar.gz" \
31
| tar -xz -C /tmp; \
32
cd "/tmp/pgvector-${PGVECTOR_VERSION}" \
0 commit comments