# Use the official PostgreSQL image as base FROM postgres:18.4 # Install build dependencies and pgvector RUN apt-get update && apt-get install -y \ build-essential \ git \ postgresql-server-dev-18 \ python3 \ python3-pip \ python3-psycopg2 \ rclone \ && git clone --branch v0.8.2 https://github.com/pgvector/pgvector.git \ && cd pgvector \ && make \ && make install \ && cd .. \ && rm -rf pgvector \ && apt-get remove -y build-essential git postgresql-server-dev-18 \ && apt-get autoremove -y \ && apt-get clean \ && rm -rf /var/lib/apt/lists/*