zypper install
DOK-W1004Version pinning forces the build to retrieve a particular version regardless of what’s in the cache. This technique can also reduce failures due to unanticipated changes changes between different versions in required packages.
FROM ruby:3
RUN zypper install -y httpd && zypper clean
FROM ruby:3
RUN zypper install -y httpd-2.24.2 && zypper clean