Skip to content

Commit

Permalink
make dockerfile easier to read
Browse files Browse the repository at this point in the history
  • Loading branch information
SoarinFerret committed Dec 27, 2023
1 parent 82d91a6 commit d70d778
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit d70d778

Please sign in to comment.