ci/openshift-ci: delint dockerfiles

Removed all errors/warnings pointed out by hadolint version 2.7.0, except for the following
ignored rules:
  - "DL3008 warning: Pin versions in apt get install"
  - "DL3041 warning: Specify version with `dnf install -y <package>-<version>`"
  - "DL3033 warning: Specify version with `yum install -y <package>-<version>`"
  - "DL3048 style: Invalid label key"
  - "DL3003 warning: Use WORKDIR to switch to a directory"
  - "DL3018 warning: Pin versions in apk add. Instead of apk add <package> use apk add <package>=<version>"
  - "DL3037 warning: Specify version with zypper install -y <package>[=]<version>"

Fixes #3107
Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
This commit is contained in:
Wainer dos Santos Moschetta 2021-11-19 14:32:16 -05:00
parent aeb2b673b3
commit 3669e1b6d9

View File

@ -6,4 +6,9 @@
# #
FROM registry.centos.org/centos:8 FROM registry.centos.org/centos:8
RUN yum -y update && yum -y install git sudo wget RUN yum -y update && \
yum -y install \
git \
sudo \
wget && \
yum clean all