46 lines
2.5 KiB
Docker
46 lines
2.5 KiB
Docker
FROM docker.io/bitnami/minideb:buster
|
|
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
|
|
|
ENV HOME="/" \
|
|
OS_ARCH="amd64" \
|
|
OS_FLAVOUR="debian-10" \
|
|
OS_NAME="linux"
|
|
|
|
COPY prebuildfs /
|
|
# Install required system packages and dependencies
|
|
RUN install_packages acl ca-certificates curl gzip libaudit1 libbsd0 libc-ares2 libc6 libcap-ng0 libedit2 libevent-2.1-6 libffi6 libgcc1 libgmp10 libgnutls30 libhogweed4 libicu63 libidn2-0 libldap-2.4-2 liblzma5 libnettle6 libp11-kit0 libpam0g libsasl2-2 libssl1.1 libstdc++6 libtasn1-6 libtinfo6 libunistring2 libuuid1 libxml2 libxslt1.1 locales procps tar zlib1g
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "wait-for-port" "1.0.0-3" --checksum 7521d9a4f9e4e182bf32977e234026caa7b03759799868335bccb1edd8f8fd12
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "postgresql-client" "10.17.0-0" --checksum b1c2a23c7d904b8968f8264dbbe0816cb1d6f5475cce3da620f823752c129266
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "ini-file" "1.3.0-2" --checksum d89528e5d733f34ae030984584659ff10a36370d40332bd8d41c047764d39cda
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.12.0-2" --checksum 4d858ac600c38af8de454c27b7f65c0074ec3069880cb16d259a6e40a46bbc50
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "pgbouncer" "1.15.0-2" --checksum da9f06f3340fa2a9483ee59fc045c34acc8411f1bdf2a9e71254cd3f3346c777
|
|
RUN chmod g+rwX /opt/bitnami
|
|
RUN localedef -c -f UTF-8 -i en_US en_US.UTF-8
|
|
RUN update-locale LANG=C.UTF-8 LC_MESSAGES=POSIX && \
|
|
DEBIAN_FRONTEND=noninteractive dpkg-reconfigure locales
|
|
RUN echo 'en_GB.UTF-8 UTF-8' >> /etc/locale.gen && locale-gen
|
|
RUN echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && locale-gen
|
|
|
|
COPY rootfs /
|
|
RUN /opt/bitnami/scripts/locales/add-extra-locales.sh
|
|
RUN /opt/bitnami/scripts/pgbouncer/postunpack.sh
|
|
ENV BITNAMI_APP_NAME="pgbouncer" \
|
|
BITNAMI_IMAGE_VERSION="1.15.0-debian-10-r105" \
|
|
LANG="en_US.UTF-8" \
|
|
LANGUAGE="en_US:en" \
|
|
NSS_WRAPPER_LIB="/opt/bitnami/common/lib/libnss_wrapper.so" \
|
|
PATH="/opt/bitnami/common/bin:/opt/bitnami/postgresql/bin:/opt/bitnami/pgbouncer/bin:$PATH" \
|
|
POSTGRESQL_CLIENT_CREATE_DATABASE_NAME="" \
|
|
POSTGRESQL_CLIENT_CREATE_DATABASE_PASSWORD="" \
|
|
POSTGRESQL_CLIENT_CREATE_DATABASE_USERNAME="" \
|
|
POSTGRESQL_HOST="postgresql" \
|
|
POSTGRESQL_PORT_NUMBER="5432" \
|
|
POSTGRESQL_ROOT_PASSWORD="" \
|
|
POSTGRESQL_ROOT_USER="postgres"
|
|
|
|
EXPOSE 6432
|
|
|
|
USER 1001
|
|
ENTRYPOINT [ "/opt/bitnami/scripts/pgbouncer/entrypoint.sh" ]
|
|
CMD [ "/opt/bitnami/scripts/pgbouncer/run.sh" ]
|