mirror of
https://github.com/bitnami/containers.git
synced 2026-03-02 08:04:33 +08:00
27 lines
923 B
Docker
27 lines
923 B
Docker
FROM bitnami/minideb-extras:jessie-r22
|
|
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
|
|
|
# Install required system packages and dependencies
|
|
RUN install_packages libbsd0 libc6 libedit2 liblzma5 libssl1.0.0 libtinfo5 libxml2 libxslt1.1 zlib1g
|
|
RUN bitnami-pkg unpack postgresql-9.6.5-0 --checksum 2e36161ff1703f1e442ee358673fcf0737ccc49bc81790974305a055905e9645
|
|
|
|
COPY rootfs /
|
|
|
|
ENV BITNAMI_APP_NAME="postgresql" \
|
|
BITNAMI_IMAGE_VERSION="9.6.5-r0" \
|
|
PATH="/opt/bitnami/postgresql/bin:$PATH" \
|
|
POSTGRESQL_DATABASE="" \
|
|
POSTGRESQL_MASTER_HOST="" \
|
|
POSTGRESQL_MASTER_PORT_NUMBER="5432" \
|
|
POSTGRESQL_PASSWORD="" \
|
|
POSTGRESQL_PORT_NUMBER="5432" \
|
|
POSTGRESQL_REPLICATION_MODE="master" \
|
|
POSTGRESQL_REPLICATION_PASSWORD="" \
|
|
POSTGRESQL_REPLICATION_USER="" \
|
|
POSTGRESQL_USERNAME="postgres"
|
|
|
|
EXPOSE 5432
|
|
|
|
ENTRYPOINT ["/app-entrypoint.sh"]
|
|
CMD ["nami","start","--foreground","postgresql"]
|