-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (26 loc) · 920 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
ARG POSTGRES_VERSION
FROM postgres:${POSTGRES_VERSION}-alpine
RUN apk add --no-cache \
git make gcc clang15 llvm15 musl-dev
ARG HYPOPG_VERSION
RUN cd /tmp \
&& git clone --branch ${HYPOPG_VERSION} https://github.com/HypoPG/hypopg.git \
&& cd hypopg \
&& make \
&& make install \
&& cd /tmp \
&& rm -rf /tmp/hypopg
ARG PGVECTOR_VERSION
RUN cd /tmp \
&& git clone --branch v${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git \
&& cd pgvector \
# Disable CPU-specific optimizations since the CPU we're building on might
# not be the same as what we're running in CI or development
#
# ref: https://github.com/pgvector/pgvector/issues/143
&& make OPTFLAGS="" \
&& make install \
&& cd /tmp \
&& rm -rf /tmp/pgvector
COPY postgresql.conf /etc/postgresql/postgresql.conf
CMD ["postgres", "-c", "config_file=/etc/postgresql/postgresql.conf"]