From fedb6b7eea6f9c023a24b8f45882bce1d0da402810502b5919789aff1652ab40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Thu, 14 Nov 2024 17:12:00 +0000 Subject: [PATCH] [info=51cb6b9a7604fbab8ab7f6f55b5406b0] OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/postgres-12-image?expand=0&rev=217 --- Dockerfile | 9 ++++++--- postgres-12-image.changes | 5 +++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c67f77c..240280a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,13 +20,16 @@ #!BuildTag: opensuse/postgres:12 #!BuildTag: opensuse/postgres:%%pg_minor_version%% -FROM opensuse/tumbleweed:latest +FROM opensuse/bci/bci-micro:latest AS target +FROM opensuse/tumbleweed:latest AS builder +COPY --from=target / /target RUN set -euo pipefail; \ - zypper -n install --no-recommends libpq5 postgresql12-server findutils; \ + zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends libpq5 postgresql12-server findutils coreutils sed util-linux; \ zypper -n clean; \ rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2} - +FROM opensuse/bci/bci-micro:latest +COPY --from=builder /target / # Define labels according to https://en.opensuse.org/Building_derived_containers # labelprefix=org.opensuse.application.postgres LABEL org.opencontainers.image.title="openSUSE Tumbleweed PostgreSQL 12" diff --git a/postgres-12-image.changes b/postgres-12-image.changes index 67a0889..94b8127 100644 --- a/postgres-12-image.changes +++ b/postgres-12-image.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Nov 14 17:06:30 UTC 2024 - SUSE Update Bot + +- switch to multistage build + ------------------------------------------------------------------- Wed Oct 30 18:28:27 UTC 2024 - SUSE Update Bot