34 lines
1.6 KiB
Docker
34 lines
1.6 KiB
Docker
FROM oraclelinux:7-slim
|
|
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
|
|
|
ENV BITNAMI_PKG_CHMOD="-R g+rwX" \
|
|
HOME="/" \
|
|
OS_ARCH="x86_64" \
|
|
OS_FLAVOUR="ol-7" \
|
|
OS_NAME="linux"
|
|
|
|
COPY prebuildfs /
|
|
# Install required system packages and dependencies
|
|
RUN install_packages ca-certificates curl cyrus-sasl-lib glibc gzip hostname keyutils-libs krb5-libs libaio-devel libcom_err libedit libgcc libicu libselinux libstdc++ libuuid libxml2 libxslt ncurses-libs nspr nss nss-softokn-freebl nss-util openldap openssl-libs pcre procps-ng sqlite sudo tar which xz-libs zlib
|
|
RUN . ./libcomponent.sh && component_unpack "postgresql" "12.1.0-1" --checksum ecc0061301790ff42f4e4fcf04a59820bcdc9b84bc81fedc4572d8b43689f88c
|
|
RUN curl --silent -L https://github.com/tianon/gosu/releases/download/1.11/gosu-amd64 > /usr/local/bin/gosu && echo 0b843df6d86e270c5b0f5cbd3c326a04e18f4b7f9b8457fa497b0454c4b138d7 /usr/local/bin/gosu | sha256sum --check && chmod u+x /usr/local/bin/gosu && mkdir -p /opt/bitnami/licenses && curl --silent -L https://raw.githubusercontent.com/tianon/gosu/master/LICENSE > /opt/bitnami/licenses/gosu-1.11.txt
|
|
|
|
COPY rootfs /
|
|
RUN rpm -Uvh --nodeps $(repoquery --location nss_wrapper)
|
|
RUN /postunpack.sh
|
|
ENV BITNAMI_APP_NAME="postgresql" \
|
|
BITNAMI_IMAGE_VERSION="12.1.0-ol-7-r22" \
|
|
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" ]
|