fix(docker): install verified pgvector runtime files
This commit is contained in:
+7
-2
@@ -30,6 +30,8 @@ RUN sed -i \
|
|||||||
-e "s|http://deb.debian.org/debian-security|$DEBIAN_SECURITY_MIRROR|g" \
|
-e "s|http://deb.debian.org/debian-security|$DEBIAN_SECURITY_MIRROR|g" \
|
||||||
-e "s|http://deb.debian.org/debian|$DEBIAN_MIRROR|g" \
|
-e "s|http://deb.debian.org/debian|$DEBIAN_MIRROR|g" \
|
||||||
/etc/apt/sources.list /etc/apt/sources.list.d/*.sources 2>/dev/null || true \
|
/etc/apt/sources.list /etc/apt/sources.list.d/*.sources 2>/dev/null || true \
|
||||||
|
&& mkdir -p /etc/postgresql-common \
|
||||||
|
&& printf 'create_main_cluster = false\n' >/etc/postgresql-common/createcluster.conf \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends ca-certificates curl ffmpeg postgresql-15 postgresql-client-15 rclone tini \
|
&& apt-get install -y --no-install-recommends ca-certificates curl ffmpeg postgresql-15 postgresql-client-15 rclone tini \
|
||||||
&& verified=0 \
|
&& verified=0 \
|
||||||
@@ -43,8 +45,11 @@ RUN sed -i \
|
|||||||
sleep "$attempt"; \
|
sleep "$attempt"; \
|
||||||
done \
|
done \
|
||||||
&& test "$verified" = 1 \
|
&& test "$verified" = 1 \
|
||||||
&& dpkg -i /tmp/pgvector.deb \
|
&& mkdir -p /tmp/pgvector-root \
|
||||||
&& rm -f /tmp/pgvector.deb \
|
&& dpkg-deb --extract /tmp/pgvector.deb /tmp/pgvector-root \
|
||||||
|
&& install -m 0755 /tmp/pgvector-root/usr/lib/postgresql/15/lib/vector.so /usr/lib/postgresql/15/lib/vector.so \
|
||||||
|
&& cp -a /tmp/pgvector-root/usr/share/postgresql/15/extension/vector* /usr/share/postgresql/15/extension/ \
|
||||||
|
&& rm -rf /tmp/pgvector.deb /tmp/pgvector-root \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
COPY requirements/runtime-core.txt /opt/imagefind/runtime-core.txt
|
COPY requirements/runtime-core.txt /opt/imagefind/runtime-core.txt
|
||||||
COPY --from=wheel-build /wheels/imagefind-*.whl /opt/imagefind/
|
COPY --from=wheel-build /wheels/imagefind-*.whl /opt/imagefind/
|
||||||
|
|||||||
Reference in New Issue
Block a user