Skip to content

Commit

Permalink
Update Dockerfile-fips
Browse files Browse the repository at this point in the history
Reducing layers and cves
  • Loading branch information
phanikumarp authored Dec 20, 2024
1 parent 985aec4 commit 6ac07c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker/ubi8/Dockerfile-fips
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ RUN ln -sf /usr/local/aws-cli/v2/current/bin/aws /usr/local/bin/aws && \
ln -sf /usr/local/aws-cli/v2/current/bin/aws_completer /usr/local/bin/aws_completer

# Install and update security-critical packages
RUN yum -y install git bash curl wget binutils bzip2-libs ca-certificates-2024.2.69_v8.0.303-80.0.el8_10 -y && \
yum -y remove tar vim vi && && yum clean all
RUN yum -y install git bash curl wget binutils bzip2-libs
RUN yum -y install ca-certificates-2024.2.69_v8.0.303-80.0.el8_10
RUN yum -y remove tar vim vi && && yum clean all

# CVE FIX , Install specific versions of libraries to avoid vulnerabilities
RUN wget https://tsn.miraclelinux.com/system/files/AXS8/x86_64/UPDATE/RPMS/expat-2.2.5-15.el8_10.x86_64.rpm && \
Expand Down

0 comments on commit 6ac07c7

Please # to comment.