FROM bitnami/centos-extras-base:7-r173 LABEL maintainer "Bitnami " ENV BITNAMI_PKG_CHMOD="-R g+rwX" \ HOME="/" \ OS_ARCH="x86_64" \ OS_FLAVOUR="centos-7" \ OS_NAME="linux" # Install required system packages and dependencies RUN install_packages glibc keyutils-libs krb5-libs libcom_err libedit libgcc libicu libselinux libstdc++ libuuid libxml2 libxslt ncurses-libs openssl-libs pcre xz-libs zlib RUN . ./libcomponent.sh && component_unpack "postgresql" "11.5.0-3" --checksum f58cbda76151676b0b21dc1b536aa346a4fcf7af9930820eb552ec69ccf6ff72 COPY rootfs / RUN yum --enablerepo base,updates,extras -y install epel-release && yum --enablerepo base,updates,extras -y update && yum --enablerepo base,updates -y install nss_wrapper RUN /postunpack.sh ENV BITNAMI_APP_NAME="postgresql" \ BITNAMI_IMAGE_VERSION="11.5.0-centos-7-r71" \ LANG="en_US.UTF-8" \ LANGUAGE="en_US:en" \ NAMI_PREFIX="/.nami" \ NSS_WRAPPER_LIB="/usr/lib64/libnss_wrapper.so" \ PATH="/opt/bitnami/postgresql/bin:$PATH" VOLUME [ "/bitnami/postgresql", "/docker-entrypoint-initdb.d", "/docker-entrypoint-preinitdb.d" ] EXPOSE 5432 USER 1001 ENTRYPOINT [ "/entrypoint.sh" ] CMD [ "/run.sh" ]