summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2020-03-04 21:19:52 +0100
committerGerd Hoffmann <kraxel@redhat.com>2020-03-04 21:19:52 +0100
commit2118aef4458104a77787dffced6585e489f4f972 (patch)
tree206541be5fc3cea2223926ed8a968f2765188368
parent8025c3edfe9eb5e0b4bdffb3ebcbac9ef43b62ef (diff)
downloads2i-base-httpd-2118aef4458104a77787dffced6585e489f4f972.tar.gz
mirror tweaks
-rw-r--r--Dockerfile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index adcc2c4..1e27ab1 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -14,14 +14,16 @@ LABEL maintainer="Gerd Hoffmann <kraxel@redhat.com>" \
USER root
+COPY ./etc/centos-mirror.sh /root
COPY ./etc/proxy.sh /etc/profile.d
-RUN source /etc/profile.d/proxy.sh; \
+COPY ./etc/*.conf /etc/httpd/conf.d/
+COPY ./s2i/bin/ /usr/libexec/s2i
+
+RUN /root/centos-mirror.sh; \
+ source /etc/profile.d/proxy.sh; \
dnf update -y && \
dnf install -y httpd && \
dnf clean all -y
-
-COPY ./s2i/bin/ /usr/libexec/s2i
-COPY ./etc/*.conf /etc/httpd/conf.d/
RUN mkdir -p /run/httpd;\
chmod 777 /run/httpd /etc/httpd/logs;\
sed -i -e '/Listen/s/^/#/' /etc/httpd/conf/httpd.conf;\