diff --git a/Dockerfile b/Dockerfile index 3ccde00..8da3231 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,7 +24,10 @@ FROM opensuse/tumbleweed:latest -RUN set -euo pipefail; zypper -n in --no-recommends go1.23 go1.23-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.23 go1.23-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 @@ -53,6 +56,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.23-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-stable-image.changes b/golang-stable-image.changes index bb3e196..dac3362 100644 --- a/golang-stable-image.changes +++ b/golang-stable-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