forked from repo-mirrors/cnpg-postgres-containers
chore: add jit
package conditionally to standard images (#311)
Ensure recommended PostgreSQL packages are included in the `standard` image only when required by the version. Starting with PostgreSQL 18, the PGDG Debian packages split `jit` into its own package, so it needs to be added separately. Closes #288 Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com> Co-authored-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
This commit is contained in:
committed by
GitHub
parent
796423b54a
commit
2d1054c8f0
@@ -22,9 +22,10 @@ USER 26
|
||||
|
||||
FROM minimal AS standard
|
||||
ARG EXTENSIONS
|
||||
ARG STANDARD_ADDITIONAL_POSTGRES_PACKAGES
|
||||
USER root
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends locales-all ${EXTENSIONS} && \
|
||||
apt-get install -y --no-install-recommends locales-all ${STANDARD_ADDITIONAL_POSTGRES_PACKAGES} ${EXTENSIONS} && \
|
||||
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && \
|
||||
rm -rf /var/lib/apt/lists/* /var/cache/* /var/log/*
|
||||
|
||||
|
Reference in New Issue
Block a user