Skip to content

Commit 5138f09

Browse files
committed
centos8 dockerfile fix
1 parent 30b3330 commit 5138f09

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nginx-plus/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ LABEL maintainer="sh.dutta@f5.com"
88
RUN mkdir -p /etc/ssl/nginx
99
COPY etc/ssl/nginx/nginx-repo.crt /etc/ssl/nginx/nginx-repo.crt
1010
COPY etc/ssl/nginx/nginx-repo.key /etc/ssl/nginx/nginx-repo.key
11+
### Added for troubleshooting centos8 problems
12+
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
13+
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
14+
RUN yum update -y
15+
###
1116
RUN chmod 644 /etc/ssl/nginx/* \
1217
# Install prerequisite packages and vim for editing:
1318
&& yum install -y --setopt=tsflags=nodocs wget ca-certificates bind-utils wget bind-utils vim-minimal \

0 commit comments

Comments
 (0)