summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-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;\