Skip to content

Commit a838201

Browse files
Updated Dockerfile to update packages
1 parent f2d0009 commit a838201

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,21 @@ RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
1616
# Clean and make cache
1717
RUN yum clean all && yum makecache
1818

19+
#update
20+
RUN yum update -y
1921

22+
#Fix the repo files again
23+
RUN rm /etc/yum.repos.d/CentOS-Base.repo
24+
25+
# Copy repo files
26+
COPY CentOS-Vault.repo /etc/yum.repos.d/
27+
COPY CentOS-SCLo-scl.repo /etc/yum.repos.d/
28+
COPY CentOS-SCLo-rh.repo /etc/yum.repos.d/
29+
COPY EPEL-Vault.repo /etc/yum.repos.d/
30+
31+
# Import GPG keys
32+
RUN curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-SCLo
33+
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
34+
35+
# Clean and make cache
36+
RUN yum clean all && yum makecache

0 commit comments

Comments
 (0)