changed containerfile to work with OS

This commit is contained in:
Student User
2022-11-09 10:14:36 -05:00
parent 5dcc01b9a4
commit 6096b01123

View File

@@ -1,2 +1,15 @@
# Use the httpd-parent image as base # Use the httpd-parent image as base
FROM quay.io/redhattraining/httpd-parent 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