From d70d7788d001672c455fec6704200b1a979f83dd Mon Sep 17 00:00:00 2001 From: Soarinferret Date: Wed, 27 Dec 2023 01:58:52 -0600 Subject: [PATCH] make dockerfile easier to read --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8222727..05f4984 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,8 @@ FROM tensorchord/pgvecto-rs-binary:${PGVECTORS_TAG} as binary FROM docker.io/bitnami/postgresql:${BITNAMI_TAG} COPY --from=binary /pgvecto-rs-binary-release.deb /tmp/vectors.deb USER root -RUN apt-get install -y /tmp/vectors.deb && rm -f /tmp/vectors.deb && mv /usr/lib/postgresql/*/lib/vectors.so /opt/bitnami/postgresql/lib/ && mv usr/share/postgresql/*/extension/vectors* opt/bitnami/postgresql/share/extension/ +RUN apt-get install -y /tmp/vectors.deb && rm -f /tmp/vectors.deb && \ + mv /usr/lib/postgresql/*/lib/vectors.so /opt/bitnami/postgresql/lib/ && \ + mv usr/share/postgresql/*/extension/vectors* opt/bitnami/postgresql/share/extension/ USER 1001 ENV POSTGRESQL_EXTRA_FLAGS="-c shared_preload_libraries=vectors.so" \ No newline at end of file