forked from soyrochus/mindstate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (26 loc) · 939 Bytes
/
Dockerfile
File metadata and controls
30 lines (26 loc) · 939 Bytes
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
# syntax=docker/dockerfile:1
FROM postgres:18
# Install build dependencies and git
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
git \
postgresql-server-dev-18 \
ca-certificates \
libreadline-dev \
zlib1g-dev \
flex \
bison \
&& rm -rf /var/lib/apt/lists/*
# Install pgvector
RUN git clone --branch v0.8.2 https://github.com/pgvector/pgvector.git /tmp/pgvector \
&& cd /tmp/pgvector \
&& make && make install \
&& cd / && rm -rf /tmp/pgvector
# Install Apache AGE (latest stable)
RUN git clone --branch PG18 https://github.com/apache/age.git /tmp/age \
&& cd /tmp/age \
&& make PG_CONFIG=/usr/lib/postgresql/18/bin/pg_config && make install PG_CONFIG=/usr/lib/postgresql/18/bin/pg_config \
&& cd / && rm -rf /tmp/age
# Enable extensions on init
COPY init-mindstate.sql /docker-entrypoint-initdb.d/