diff --git a/Dockerfile b/Dockerfile index 132bd57..885c097 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,7 +23,10 @@ FROM opensuse/tumbleweed:latest -RUN set -euo pipefail; zypper -n in --no-recommends go1.22 go1.22-doc make curl findutils gawk git-core procps util-linux; zypper -n clean; rm -rf /var/log/{lastlog,tallylog,zypper.log,zypp/history,YaST2} +RUN set -euo pipefail; \ + zypper -n install --no-recommends go1.22 go1.22-doc make curl findutils gawk git-core procps util-linux; \ + zypper -n clean; \ + rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2} # Define labels according to https://en.opensuse.org/Building_derived_containers # labelprefix=org.opensuse.bci.golang @@ -52,6 +55,6 @@ ENV PATH="/go/bin:/usr/local/go/bin:/root/go/bin/:/usr/local/sbin:/usr/local/bin #!ArchExclusiveLine: x86_64 aarch64 s390x ppc64le RUN set -euo pipefail; if zypper -n install go1.22-race; then zypper -n clean; fi RUN set -euo pipefail; install -m 755 -d /go/bin /go/src -RUN set -euo pipefail; rm -rf /var/log/{lastlog,tallylog,zypper.log,zypp/history,YaST2} +RUN set -euo pipefail; rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2} WORKDIR /go diff --git a/golang-oldstable-image.changes b/golang-oldstable-image.changes index 8c4af13..4235226 100644 --- a/golang-oldstable-image.changes +++ b/golang-oldstable-image.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Wed Sep 25 17:36:16 UTC 2024 - Dirk Mueller + +- rerender installation step in multiple lines, allow uninstalling optional packages + +------------------------------------------------------------------- +Wed Sep 25 17:12:11 UTC 2024 - Dirk Mueller + +- improved log cleaning + ------------------------------------------------------------------- Tue Sep 24 20:00:32 UTC 2024 - Dirk Mueller