Skip to content

Commit ced689d

Browse files
committed
test
1 parent ac4370a commit ced689d

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@ ENV CERTS="{}" \
2121
RUN apk add --no-cache python3 py3-netifaces \
2222
&& if [ "${PG_MAJOR:-0}" -ge 12 ]; then \
2323
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 \
24+
&& CLANG_PKG="$(apk search -x 'clang[0-9]*' | sort -V | tail -1)" \
25+
&& test -n "$CLANG_PKG" \
26+
&& VER="${CLANG_PKG#clang}" \
27+
&& apk add --no-cache --virtual .pgvector-build \
28+
"clang${VER}" \
29+
"llvm${VER}" \
2730
&& wget -qO- "https://github.com/pgvector/pgvector/archive/refs/tags/v${PGVECTOR_VERSION}.tar.gz" \
2831
| tar -xz -C /tmp; \
2932
cd "/tmp/pgvector-${PGVECTOR_VERSION}" \

0 commit comments

Comments
 (0)