mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-08 17:42:56 +01:00
Adds a PG15 pgvector build image variant
This commit is contained in:
parent
b06af91083
commit
3d5fed6423
2 changed files with 24 additions and 0 deletions
|
|
@ -70,3 +70,6 @@ postgres-13-pgvector-0.4.1:
|
||||||
|
|
||||||
postgres-14-pgvector-0.4.1:
|
postgres-14-pgvector-0.4.1:
|
||||||
extends: .build_static_image
|
extends: .build_static_image
|
||||||
|
|
||||||
|
postgres-15-pgvector-0.4.1:
|
||||||
|
extends: .build_static_image
|
||||||
|
|
|
||||||
21
Dockerfile.postgres-15-pgvector-0.4.1
Normal file
21
Dockerfile.postgres-15-pgvector-0.4.1
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
FROM alpine/git as build
|
||||||
|
|
||||||
|
WORKDIR /usr/src/app
|
||||||
|
RUN git clone --branch v0.4.1 https://github.com/pgvector/pgvector.git
|
||||||
|
|
||||||
|
FROM postgres:15 as main
|
||||||
|
|
||||||
|
COPY --from=build /usr/src/app/pgvector /tmp/pgvector
|
||||||
|
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y --no-install-recommends build-essential postgresql-server-dev-15 && \
|
||||||
|
cd /tmp/pgvector && \
|
||||||
|
make clean && \
|
||||||
|
make OPTFLAGS="" && \
|
||||||
|
make install && \
|
||||||
|
mkdir /usr/share/doc/pgvector && \
|
||||||
|
cp LICENSE README.md /usr/share/doc/pgvector && \
|
||||||
|
rm -r /tmp/pgvector && \
|
||||||
|
apt-get remove -y build-essential postgresql-server-dev-15 && \
|
||||||
|
apt-get autoremove -y && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
Loading…
Add table
Add a link
Reference in a new issue