-
Notifications
You must be signed in to change notification settings - Fork 424
DL3041
Moritz Röhrich edited this page Nov 6, 2020
·
1 revision
RUN dnf install -y httpd && dnf clean all
RUN dnf install -y httpd-2.24.2 && dnf clean all
Version 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 in required packages.
https://docs.docker.com/develop/develop-images/dockerfile_best-practices/
If you need downgrade an already installed package to an older version, use dnf downgrade -y <package_name>-<version_info>