mirror of
https://github.com/pgvector/pgvector.git
synced 2025-04-18 11:24:01 +03:00
21 lines
592 B
Docker
21 lines
592 B
Docker
ARG PG_MAJOR=17
|
|
FROM postgres:$PG_MAJOR
|
|
ARG PG_MAJOR
|
|
|
|
COPY . /tmp/pgvector
|
|
|
|
RUN apt-get update && \
|
|
apt-mark hold locales && \
|
|
apt-get install -y --no-install-recommends build-essential postgresql-server-dev-$PG_MAJOR && \
|
|
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-$PG_MAJOR && \
|
|
apt-get autoremove -y && \
|
|
apt-mark unhold locales && \
|
|
rm -rf /var/lib/apt/lists/*
|