FROM danielberteaud/alma:9.24.4-1 MAINTAINER Daniel Berteaud ENV PG_BASE_DATA=/data/db/ \ PG_INITDB_OPTS="--data-checksum --encoding UTF-8" RUN set -eux &&\ rpm -i https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm &&\ dnf module -y disable postgresql &&\ dnf -y install glibc-langpack-fr glibc-langpack-en &&\ dnf install -y postgresql15 postgresql15-server postgresql15-contrib; \ dnf install -y postgresql16 postgresql16-server postgresql16-contrib; \ dnf clean all &&\ rm -rf /var/cache/yum/* /var/log/yum/* /var/lib/yum/history* COPY --from=danielberteaud/postgres:15.24.4-1 /usr/pgsql-15/share/extension/vectors* /usr/pgsql-15/share/extension/ COPY --from=danielberteaud/postgres:15.24.4-1 /usr/pgsql-15/lib/vectors.so /usr/pgsql-15/lib/vectors.so COPY --from=danielberteaud/postgres:16.24.4-1 /usr/pgsql-16/share/extension/vectors* /usr/pgsql-16/share/extension/ COPY --from=danielberteaud/postgres:16.24.4-1 /usr/pgsql-16/lib/vectors.so /usr/pgsql-16/lib/vectors.so COPY root/ / USER postgres CMD ["pg-upgrade.sh"]