JSON blob 0a5d8a6f2c62a02ada53813e8548ce75e2a11980a7828257d5ffa1ba855fde2a

{
  "architecture": "amd64",
  "config": {
    "ExposedPorts": {
      "5432/tcp": {}
    },
    "Env": [
      "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/16/bin",
      "GOSU_VERSION=1.17",
      "LANG=en_US.utf8",
      "PG_MAJOR=16",
      "PG_VERSION=16.9-1.pgdg110+1",
      "PGDATA=/var/lib/postgresql/data",
      "POSTGIS_MAJOR=3",
      "POSTGIS_VERSION=3.5.2+dfsg-1.pgdg110+1"
    ],
    "Entrypoint": [
      "docker-entrypoint.sh"
    ],
    "Cmd": [
      "postgres"
    ],
    "Volumes": {
      "/var/lib/postgresql/data": {}
    },
    "Labels": {
      "maintainer": "PostGIS Project - https://postgis.net",
      "org.opencontainers.image.description": "PostGIS 3.5.2+dfsg-1.pgdg110+1 spatial database extension with PostgreSQL 16 bullseye",
      "org.opencontainers.image.source": "https://github.com/postgis/docker-postgis"
    },
    "StopSignal": "SIGINT"
  },
  "created": "2026-02-23T06:14:06.101249691Z",
  "history": [
    {
      "created": "2025-06-06T18:27:47Z",
      "created_by": "# debian.sh --arch 'amd64' out/ 'bullseye' '@1753056000'",
      "comment": "debuerreotype 0.15"
    },
    {
      "created": "2025-06-06T18:27:47Z",
      "created_by": "RUN /bin/sh -c set -eux; \tgroupadd -r postgres --gid=999; \tuseradd -r -g postgres --uid=999 --home-dir=/var/lib/postgresql --shell=/bin/bash postgres; \tinstall --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit",
      "comment": "buildkit.dockerfile.v0"
    },
    {
      "created": "2025-06-06T18:27:47Z",
      "created_by": "RUN /bin/sh -c set -ex; \tapt-get update; \tapt-get install -y --no-install-recommends \t\tgnupg \t\tless \t; \trm -rf /var/lib/apt/lists/* # buildkit",
      "comment": "buildkit.dockerfile.v0"
    },
    {
      "created": "2025-06-06T18:27:47Z",
      "created_by": "ENV GOSU_VERSION=1.17",
      "comment": "buildkit.dockerfile.v0",
      "empty_layer": true
    },
    {
      "created": "2025-06-06T18:27:47Z",
      "created_by": "RUN /bin/sh -c set -eux; \tsavedAptMark=\"$(apt-mark showmanual)\"; \tapt-get update; \tapt-get install -y --no-install-recommends ca-certificates wget; \trm -rf /var/lib/apt/lists/*; \tdpkgArch=\"$(dpkg --print-architecture | awk -F- '{ print $NF }')\"; \twget -O /usr/local/bin/gosu \"https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch\"; \twget -O /usr/local/bin/gosu.asc \"https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc\"; \texport GNUPGHOME=\"$(mktemp -d)\"; \tgpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; \tgpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; \tgpgconf --kill all; \trm -rf \"$GNUPGHOME\" /usr/local/bin/gosu.asc; \tapt-mark auto '.*' > /dev/null; \t[ -z \"$savedAptMark\" ] || apt-mark manual $savedAptMark > /dev/null; \tapt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \tchmod +x /usr/local/bin/gosu; \tgosu --version; \tgosu nobody true # buildkit",
      "comment": "buildkit.dockerfile.v0"
    },
    {
      "created": "2025-06-06T18:27:47Z",
      "created_by": "RUN /bin/sh -c set -eux; \tif [ -f /etc/dpkg/dpkg.cfg.d/docker ]; then \t\tgrep -q '/usr/share/locale' /etc/dpkg/dpkg.cfg.d/docker; \t\tsed -ri '/\\/usr\\/share\\/locale/d' /etc/dpkg/dpkg.cfg.d/docker; \t\t! grep -q '/usr/share/locale' /etc/dpkg/dpkg.cfg.d/docker; \tfi; \tapt-get update; apt-get install -y --no-install-recommends locales; rm -rf /var/lib/apt/lists/*; \techo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen; \tlocale-gen; \tlocale -a | grep 'en_US.utf8' # buildkit",
      "comment": "buildkit.dockerfile.v0"
    },
    {
      "created": "2025-06-06T18:27:47Z",
      "created_by": "ENV LANG=en_US.utf8",
      "comment": "buildkit.dockerfile.v0",
      "empty_layer": true
    },
    {
      "created": "2025-06-06T18:27:47Z",
      "created_by": "RUN /bin/sh -c set -eux; \tapt-get update; \tapt-get install -y --no-install-recommends \t\tlibnss-wrapper \t\txz-utils \t\tzstd \t; \trm -rf /var/lib/apt/lists/* # buildkit",
      "comment": "buildkit.dockerfile.v0"
    },
    {
      "created": "2025-06-06T18:27:47Z",
      "created_by": "RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit",
      "comment": "buildkit.dockerfile.v0"
    },
    {
      "created": "2025-06-06T18:27:47Z",
      "created_by": "RUN /bin/sh -c set -ex; \tkey='B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8'; \texport GNUPGHOME=\"$(mktemp -d)\"; \tmkdir -p /usr/local/share/keyrings/; \tgpg --batch --keyserver keyserver.ubuntu.com --recv-keys \"$key\"; \tgpg --batch --export --armor \"$key\" > /usr/local/share/keyrings/postgres.gpg.asc; \tgpgconf --kill all; \trm -rf \"$GNUPGHOME\" # buildkit",
      "comment": "buildkit.dockerfile.v0"
    },
    {
      "created": "2025-06-06T18:27:47Z",
      "created_by": "ENV PG_MAJOR=16",
      "comment": "buildkit.dockerfile.v0",
      "empty_layer": true
    },
    {
      "created": "2025-06-06T18:27:47Z",
      "created_by": "ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/16/bin",
      "comment": "buildkit.dockerfile.v0",
      "empty_layer": true
    },
    {
      "created": "2025-06-06T18:27:47Z",
      "created_by": "ENV PG_VERSION=16.9-1.pgdg110+1",
      "comment": "buildkit.dockerfile.v0",
      "empty_layer": true
    },
    {
      "created": "2025-06-06T18:27:47Z",
      "created_by": "RUN /bin/sh -c set -ex; \t\texport PYTHONDONTWRITEBYTECODE=1; \t\tdpkgArch=\"$(dpkg --print-architecture)\"; \taptRepo=\"[ signed-by=/usr/local/share/keyrings/postgres.gpg.asc ] http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main $PG_MAJOR\"; \tcase \"$dpkgArch\" in \t\tamd64 | arm64 | ppc64el) \t\t\techo \"deb $aptRepo\" > /etc/apt/sources.list.d/pgdg.list; \t\t\tapt-get update; \t\t\t;; \t\t*) \t\t\techo \"deb-src $aptRepo\" > /etc/apt/sources.list.d/pgdg.list; \t\t\t\t\t\tsavedAptMark=\"$(apt-mark showmanual)\"; \t\t\t\t\t\ttempDir=\"$(mktemp -d)\"; \t\t\tcd \"$tempDir\"; \t\t\t\t\t\tapt-get update; \t\t\tapt-get install -y --no-install-recommends dpkg-dev; \t\t\techo \"deb [ trusted=yes ] file://$tempDir ./\" > /etc/apt/sources.list.d/temp.list; \t\t\t_update_repo() { \t\t\t\tdpkg-scanpackages . > Packages; \t\t\t\tapt-get -o Acquire::GzipIndexes=false update; \t\t\t}; \t\t\t_update_repo; \t\t\t\t\t\tnproc=\"$(nproc)\"; \t\t\texport DEB_BUILD_OPTIONS=\"nocheck parallel=$nproc\"; \t\t\tapt-get build-dep -y postgresql-common-dev; \t\t\tapt-get source --compile postgresql-common-dev; \t\t\t_update_repo; \t\t\tapt-get build-dep -y \"postgresql-$PG_MAJOR=$PG_VERSION\"; \t\t\tapt-get source --compile \"postgresql-$PG_MAJOR=$PG_VERSION\"; \t\t\t\t\t\t\t\t\tapt-mark showmanual | xargs apt-mark auto > /dev/null; \t\t\tapt-mark manual $savedAptMark; \t\t\t\t\t\tls -lAFh; \t\t\t_update_repo; \t\t\tgrep '^Package: ' Packages; \t\t\tcd /; \t\t\t;; \tesac; \t\tapt-get install -y --no-install-recommends postgresql-common; \tsed -ri 's/#(create_main_cluster) .*$/\\1 = false/' /etc/postgresql-common/createcluster.conf; \tapt-get install -y --no-install-recommends \t\t\"postgresql-$PG_MAJOR=$PG_VERSION\" \t; \t\trm -rf /var/lib/apt/lists/*; \t\tif [ -n \"$tempDir\" ]; then \t\tapt-get purge -y --auto-remove; \t\trm -rf \"$tempDir\" /etc/apt/sources.list.d/temp.list; \tfi; \t\tfind /usr -name '*.pyc' -type f -exec bash -c 'for pyc; do dpkg -S \"$pyc\" &> /dev/null || rm -vf \"$pyc\"; done' -- '{}' +; \t\tpostgres --version # buildkit",
      "comment": "buildkit.dockerfile.v0"
    },
    {
      "created": "2025-06-06T18:27:47Z",
      "created_by": "RUN /bin/sh -c set -eux; \tdpkg-divert --add --rename --divert \"/usr/share/postgresql/postgresql.conf.sample.dpkg\" \"/usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample\"; \tcp -v /usr/share/postgresql/postgresql.conf.sample.dpkg /usr/share/postgresql/postgresql.conf.sample; \tln -sv ../postgresql.conf.sample \"/usr/share/postgresql/$PG_MAJOR/\"; \tsed -ri \"s!^#?(listen_addresses)\\s*=\\s*\\S+.*!\\1 = '*'!\" /usr/share/postgresql/postgresql.conf.sample; \tgrep -F \"listen_addresses = '*'\" /usr/share/postgresql/postgresql.conf.sample # buildkit",
      "comment": "buildkit.dockerfile.v0"
    },
    {
      "created": "2025-06-06T18:27:47Z",
      "created_by": "RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit",
      "comment": "buildkit.dockerfile.v0"
    },
    {
      "created": "2025-06-06T18:27:47Z",
      "created_by": "ENV PGDATA=/var/lib/postgresql/data",
      "comment": "buildkit.dockerfile.v0",
      "empty_layer": true
    },
    {
      "created": "2025-06-06T18:27:47Z",
      "created_by": "RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 \"$PGDATA\" # buildkit",
      "comment": "buildkit.dockerfile.v0"
    },
    {
      "created": "2025-06-06T18:27:47Z",
      "created_by": "VOLUME [/var/lib/postgresql/data]",
      "comment": "buildkit.dockerfile.v0",
      "empty_layer": true
    },
    {
      "created": "2025-06-06T18:27:47Z",
      "created_by": "COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit",
      "comment": "buildkit.dockerfile.v0"
    },
    {
      "created": "2025-06-06T18:27:47Z",
      "created_by": "RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit",
      "comment": "buildkit.dockerfile.v0"
    },
    {
      "created": "2025-06-06T18:27:47Z",
      "created_by": "ENTRYPOINT [\"docker-entrypoint.sh\"]",
      "comment": "buildkit.dockerfile.v0",
      "empty_layer": true
    },
    {
      "created": "2025-06-06T18:27:47Z",
      "created_by": "STOPSIGNAL SIGINT",
      "comment": "buildkit.dockerfile.v0",
      "empty_layer": true
    },
    {
      "created": "2025-06-06T18:27:47Z",
      "created_by": "EXPOSE map[5432/tcp:{}]",
      "comment": "buildkit.dockerfile.v0",
      "empty_layer": true
    },
    {
      "created": "2025-06-06T18:27:47Z",
      "created_by": "CMD [\"postgres\"]",
      "comment": "buildkit.dockerfile.v0",
      "empty_layer": true
    },
    {
      "created": "2026-02-23T06:14:05.929033115Z",
      "created_by": "LABEL maintainer=PostGIS Project - https://postgis.net org.opencontainers.image.description=PostGIS 3.5.2+dfsg-1.pgdg110+1 spatial database extension with PostgreSQL 16 bullseye org.opencontainers.image.source=https://github.com/postgis/docker-postgis",
      "comment": "buildkit.dockerfile.v0",
      "empty_layer": true
    },
    {
      "created": "2026-02-23T06:14:05.929033115Z",
      "created_by": "ENV POSTGIS_MAJOR=3",
      "comment": "buildkit.dockerfile.v0",
      "empty_layer": true
    },
    {
      "created": "2026-02-23T06:14:05.929033115Z",
      "created_by": "ENV POSTGIS_VERSION=3.5.2+dfsg-1.pgdg110+1",
      "comment": "buildkit.dockerfile.v0",
      "empty_layer": true
    },
    {
      "created": "2026-02-23T06:14:05.929033115Z",
      "created_by": "RUN /bin/sh -c apt-get update       && apt-cache showpkg postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR       && apt-get install -y --no-install-recommends            ca-certificates                       postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR=$POSTGIS_VERSION            postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR-scripts       && rm -rf /var/lib/apt/lists/* # buildkit",
      "comment": "buildkit.dockerfile.v0"
    },
    {
      "created": "2026-02-23T06:14:06.072230695Z",
      "created_by": "RUN /bin/sh -c mkdir -p /docker-entrypoint-initdb.d # buildkit",
      "comment": "buildkit.dockerfile.v0"
    },
    {
      "created": "2026-02-23T06:14:06.08618638Z",
      "created_by": "COPY ./initdb-postgis.sh /docker-entrypoint-initdb.d/10_postgis.sh # buildkit",
      "comment": "buildkit.dockerfile.v0"
    },
    {
      "created": "2026-02-23T06:14:06.101249691Z",
      "created_by": "COPY ./update-postgis.sh /usr/local/bin # buildkit",
      "comment": "buildkit.dockerfile.v0"
    }
  ],
  "os": "linux",
  "rootfs": {
    "type": "layers",
    "diff_ids": [
      "sha256:a07f4ed3adbe9f3131e7531782871ac8e2bd4abf9faf2292dbbf24e2e5746314",
      "sha256:80c4a4e2178ecfda94adedd73c52802fa7b9a8693a952dd8221e4a62b470c675",
      "sha256:9c840251eafa9912f544cee0f50fbe1547a0f4afdfd258675f2e508c4056706c",
      "sha256:5b2511d32b0220817a732485d57e99070a0adbd49d1709e7204ce0315ed648a5",
      "sha256:78caf43bf762ba55f4a5f0d8f24d6dddb7604b9a819c6a79861f4b6e69d8e13a",
      "sha256:cbb2c49bf4a560cbdc55847f05eb33bb8d7e73737060a9639119ab233d4c60b3",
      "sha256:c7ab83c7e985cc5559452976fef973ab72db286c662ae7053b32f22436fdc150",
      "sha256:7dd8b3275aaf913b603932a7ff57929fab7bc60751416b6ca821c1d288ec6aa3",
      "sha256:02672ff91dca5610cdaf862ba6b4e7b2cf165abc5b416ad19bdaaa3e433a3f7b",
      "sha256:947805e6b6e883bfbdb6168d7b6100a0e198c25c72e5932f710ce95938471a11",
      "sha256:5b2d95831d02cee0282b222cc886605b895682d56fe94178c16ccf10f81f2c1e",
      "sha256:abdb75bca2b094cb542b8c375efe2ab5d3a37f4a9c116665bb34f2c769105294",
      "sha256:2319d5f3b2103f4deb9aa306fb53d87127eb6288252bd0cc4957295ee3450c37",
      "sha256:05e63c62006798612aa7d85df205bc68fddc1dc2c1bc54efd613d8f14872f623",
      "sha256:007486a93aedb198e108ec33227b00015bf36787170788b6667169df0a0c585e",
      "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
      "sha256:9729aaf9677e5562ce675796a3ec31acd2c4a7d81e18e3fc2b70f2cf67aaa7d9",
      "sha256:4db6fd4b2e716dc1ee60e74864e36b13dd2098a9e55cffaf2689bb6ac912b4ac"
    ]
  }
}

Images, referring to this json: