diff --git a/Dockerfile b/Dockerfile index bff14b8..ce7733e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -88,5 +88,9 @@ RUN apk add --no-cache \ COPY --from=builder /usr/local/lib/postgresql/ /usr/local/lib/postgresql/ COPY --from=builder /usr/local/share/postgresql/ /usr/local/share/postgresql/ +# Preload pg_textsearch so CREATE EXTENSION works without manual config +# NOTE: pgsodium is intentionally excluded — it requires a getkey script at boot +RUN echo "shared_preload_libraries = 'pg_textsearch'" >> /usr/local/share/postgresql/postgresql.conf.sample + LABEL org.opencontainers.image.source="https://github.com/constructive-io/docker" LABEL org.opencontainers.image.description="PostgreSQL 17 with pgvector, PostGIS, pg_textsearch, and pgsodium"