Fix Dockerfile: Remove broken apt-get install, rely on CloudNativePG base image extensions

This commit is contained in:
umbra audio
2026-11-01 06:02:33 -08:00
parent 674d8332e3
commit 61bc6e4b4d

View File

@@ -3,19 +3,10 @@
# UmbraDatastore - PostgreSQL with UmbraTrans schema
# Based on CloudNativePG PostgreSQL 16.4
# Note: CloudNativePG base image already includes pgcrypto, uuid-ossp, citext extensions
FROM ghcr.io/cloudnative-pg/postgresql:16.4
# Install additional extensions if needed
USER root
RUN apt-get update && apt-get install -y --no-install-recommends \
postgresql-16-pgcrypto \
postgresql-16-uuid-ossp \
&& rm -rf /var/lib/apt/lists/*
# Switch back to postgres user
USER postgres
# Copy migration scripts to be run on initialization
# These will be executed by CNPG's postInitApplicationSQL or via initdb
COPY migrations/ /docker-entrypoint-initdb.d/