-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from LinuxSuRen/build
doc: add badge of the docker hub image
- Loading branch information
Showing
3 changed files
with
29 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,27 @@ | ||
FROM bitnami/postgresql:15.6.0-debian-12-r7 | ||
ARG PGVECTOR_TAG=v0.6.2 | ||
ARG PG_MAJOR=16 | ||
FROM bitnami/git:2.44.0 AS git | ||
|
||
ARG PGVECTOR_TAG | ||
WORKDIR /workspace | ||
RUN git clone https://github.com/pgvector/pgvector && cd pgvector && git checkout ${PGVECTOR_TAG} | ||
|
||
ARG PG_MAJOR | ||
FROM bitnami/postgresql:${PG_MAJOR}-debian-12 | ||
|
||
USER root | ||
RUN apt update -y && apt install -y postgresql-common | ||
RUN echo yes | /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh | ||
RUN apt install postgresql-16-pgvector -y | ||
COPY --from=git /workspace/pgvector /tmp/pgvector | ||
RUN apt-get update && \ | ||
apt-mark hold locales && \ | ||
apt-get install -y --no-install-recommends build-essential && \ | ||
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 && \ | ||
apt-get autoremove -y && \ | ||
apt-mark unhold locales && \ | ||
rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters