Files
replypier/Dockerfile.postgres
T
WangShen007 20fef2b9f3 chore: settle product naming across app, widget and deployments
One word everywhere: ReplyPier in UI copy, package and image names, the
replypier.site domains (app/api/docs/help), REPLYPIER_* settings and the
--rp-* design tokens.

- public widget API is window.ReplyPier with replypierId / replypierBaseUrl /
  replypierConfig / replypierToken, loader at webclient/replypier.min.js;
  both bundles rebuilt from source
- NOTICE, llms.txt, CONTRIBUTING, HELP_CENTER_INFRA and the demo runtime
  config rewritten; the demo config ships no third-party keys
- migration adds the ReplyPier managed model value to the AI model enum
- local compose project, database, role, volume and Docker network carry the
  same name
2026-10-26 00:57:22 +08:00

31 lines
981 B
Docker

FROM postgres:16
# Install build dependencies
RUN apt-get update && apt-get install -y \
build-essential \
git \
postgresql-server-dev-16 \
&& rm -rf /var/lib/apt/lists/*
# Install pg_vector extension with compatibility fixes for ARM64
RUN git clone https://github.com/pgvector/pgvector.git && \
cd pgvector && \
git checkout v0.5.1 && \
make OPTFLAGS="" && \
make install
# Add initialization scripts
COPY ./backend/scripts/init-vector.sql /docker-entrypoint-initdb.d/
# Set environment variables
ENV POSTGRES_DB=replypier
ENV POSTGRES_USER=postgres
ENV POSTGRES_PASSWORD=postgres
# Set PostgreSQL configuration for better stability with pgvector
RUN echo "shared_preload_libraries = 'vector'" >> /usr/share/postgresql/postgresql.conf.sample
RUN echo "max_connections = 200" >> /usr/share/postgresql/postgresql.conf.sample
RUN echo "shared_buffers = 256MB" >> /usr/share/postgresql/postgresql.conf.sample
# Expose PostgreSQL port
EXPOSE 5432