42 lines
2.0 KiB
Docker
42 lines
2.0 KiB
Docker
FROM docker.io/bitnami/minideb:bullseye
|
|
ENV HOME="/" \
|
|
OS_ARCH="amd64" \
|
|
OS_FLAVOUR="debian-11" \
|
|
OS_NAME="linux"
|
|
|
|
ARG EXTRA_LOCALES=""
|
|
ARG WITH_ALL_LOCALES="no"
|
|
|
|
COPY prebuildfs /
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
# Install required system packages and dependencies
|
|
RUN install_packages acl ca-certificates curl gzip libbsd0 libbz2-1.0 libc6 libedit2 libffi7 libgcc-s1 libgmp10 libgnutls30 libhogweed6 libicu67 libidn2-0 libldap-2.4-2 liblz4-1 liblzma5 libmd0 libncurses6 libnettle8 libp11-kit0 libpcre3 libreadline8 libsasl2-2 libsqlite3-0 libssl1.1 libstdc++6 libtasn1-6 libtinfo6 libunistring2 libuuid1 libxml2 libxslt1.1 libzstd1 locales procps tar zlib1g
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-150" --checksum da4a2f759ccc57c100d795b71ab297f48b31c4dd7578d773d963bbd49c42bd7b
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "postgresql" "14.4.0-2" --checksum 7f621369d6b48760f12757b844b3fc59f3884acb495c7d392e3a80f924c311e0
|
|
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/postgresql/postunpack.sh
|
|
RUN /opt/bitnami/scripts/locales/add-extra-locales.sh
|
|
ENV APP_VERSION="14.4.0" \
|
|
BITNAMI_APP_NAME="postgresql" \
|
|
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:$PATH"
|
|
|
|
VOLUME [ "/bitnami/postgresql", "/docker-entrypoint-initdb.d", "/docker-entrypoint-preinitdb.d" ]
|
|
|
|
EXPOSE 5432
|
|
|
|
USER 1001
|
|
ENTRYPOINT [ "/opt/bitnami/scripts/postgresql/entrypoint.sh" ]
|
|
CMD [ "/opt/bitnami/scripts/postgresql/run.sh" ]
|