Fix Dockerfile: Remove broken apt-get install, rely on CloudNativePG base image extensions
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -3,19 +3,10 @@
|
|||||||
|
|
||||||
# UmbraDatastore - PostgreSQL with UmbraTrans schema
|
# UmbraDatastore - PostgreSQL with UmbraTrans schema
|
||||||
# Based on CloudNativePG PostgreSQL 16.4
|
# 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
|
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
|
# Copy migration scripts to be run on initialization
|
||||||
# These will be executed by CNPG's postInitApplicationSQL or via initdb
|
# These will be executed by CNPG's postInitApplicationSQL or via initdb
|
||||||
COPY migrations/ /docker-entrypoint-initdb.d/
|
COPY migrations/ /docker-entrypoint-initdb.d/
|
||||||
|
|||||||
Reference in New Issue
Block a user