morphik-core/postgres.dockerfile

25 lines
543 B
Plaintext
Raw Normal View History

2025-01-09 15:47:25 +05:30
FROM postgres:15-alpine
# Install build dependencies
RUN apk add --no-cache \
git \
build-base \
clang \
llvm \
postgresql-dev
# Clone and build pgvector
RUN git clone --branch v0.5.1 https://github.com/pgvector/pgvector.git \
&& cd pgvector \
&& make OPTFLAGS="" \
&& make install
# Cleanup
RUN apk del git build-base clang llvm postgresql-dev \
&& rm -rf /pgvector
2025-01-09 15:47:25 +05:30
# Copy data dump
COPY dump.sql /tmp/dump.sql
2025-05-03 21:39:58 -07:00
# (No database init script necessary — schema is created by the application at runtime)