40 lines
2.3 KiB
Docker
40 lines
2.3 KiB
Docker
FROM docker.io/bitnami/minideb:bullseye
|
|
ENV HOME="/" \
|
|
OS_ARCH="amd64" \
|
|
OS_FLAVOUR="debian-11" \
|
|
OS_NAME="linux"
|
|
|
|
COPY prebuildfs /
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
# Install required system packages and dependencies
|
|
RUN install_packages acl ca-certificates curl gzip libaudit1 libbsd0 libc-ares2 libc6 libcap-ng0 libcrypt1 libedit2 libevent-2.1-7 libffi7 libgcc-s1 libgmp10 libgnutls30 libhogweed6 libicu67 libidn2-0 libldap-2.4-2 liblzma5 libmd0 libnettle8 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.3-150" --checksum 1013e2ebbe58e5dc8f3c79fc952f020fc5306ba48463803cacfbed7779173924
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "postgresql-client" "10.21.0-150" --checksum c9d6f09bac47484b4d4aaec3d48018c46d4102fb35abebeb62ef7a3496125e4c
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "ini-file" "1.4.3-150" --checksum ef1f6d1ca9e4873f82cf5037078b55524596ca2755262948f23571767bfd4101
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-150" --checksum da4a2f759ccc57c100d795b71ab297f48b31c4dd7578d773d963bbd49c42bd7b
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "pgbouncer" "1.17.0-151" --checksum 8d002f1f9205cec7c152e803cb5a7022df9edf2f7d70905223644122dca87fee
|
|
RUN apt-get update && apt-get upgrade -y && \
|
|
rm -r /var/lib/apt/lists /var/cache/apt/archives
|
|
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 APP_VERSION="1.17.0" \
|
|
BITNAMI_APP_NAME="pgbouncer" \
|
|
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"
|
|
|
|
EXPOSE 6432
|
|
|
|
USER 1001
|
|
ENTRYPOINT [ "/opt/bitnami/scripts/pgbouncer/entrypoint.sh" ]
|
|
CMD [ "/opt/bitnami/scripts/pgbouncer/run.sh" ]
|