From 6096b0112395cbff77c6e8a55e46e23b158b7d5f Mon Sep 17 00:00:00 2001 From: Student User Date: Wed, 9 Nov 2022 10:14:36 -0500 Subject: [PATCH] changed containerfile to work with OS --- container-build/Containerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/container-build/Containerfile b/container-build/Containerfile index 30d0753..0b26f00 100644 --- a/container-build/Containerfile +++ b/container-build/Containerfile @@ -1,2 +1,15 @@ # Use the httpd-parent image as base FROM quay.io/redhattraining/httpd-parent +LABEL io.openshift.expose-services="8080:http" + + +EXPOSE 8080 + +RUN sed -i "s/Listen 80/Listen 8080/g" /etc/httpd/conf/httpd.conf +RUN sed -i "s/#ServerName www.example.com:80/ServerName 0.0.0.0:8080/g" /etc/httpd/conf/httpd.conf + +RUN chgrp -R 0 /var/log/httpd /var/run/httpd && \ + chmod -R g=u /var/log/httpd /var/run/httpd + +USER 1001 +