Files
replypier/Dockerfile.postgres
T
WangShen007 54b949b392 chore(brand): rename the product to ReplyPier
The upstream project name is gone from code, assets, docs and build
output: brand strings, domains (replypier.site and its app/api/docs/help
subdomains), env prefixes, image and network names, the widget's public
JS API (window.ReplyPier, replypierId/BaseUrl/Config/Token), CSS tokens
(--rp-*), file and directory names, and the WordPress plugin package.

- widget loader is now webclient/replypier.min.js; both bundles rebuilt
  from source (backend/assets/widget.{js,css}, frontend/public/webclient)
- NOTICE, llms.txt, CONTRIBUTING, HELP_CENTER_INFRA and config.dev.js
  rewritten rather than string-swapped; the demo config no longer ships
  the previous vendor's Firebase/Razorpay/Google keys
- new migration replypier_ai_model_001 adds REPLYPIER to the managed
  AIModelType and rewrites pre-rename rows
- local compose project, database, role and volume renamed; LOCAL_DEPLOY
  documents carrying the old local data over
2026-10-26 00:51:03 +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