initial commit with apps from course repo
This commit is contained in:
19
apache-httpd/Dockerfile
Normal file
19
apache-httpd/Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM registry.access.redhat.com/rhel7:7.6
|
||||
|
||||
RUN rpm --rebuilddb && \
|
||||
yum install -y httpd \
|
||||
&& yum clean all
|
||||
|
||||
ADD index.html /var/www/html
|
||||
|
||||
RUN sed -i 's/Listen 80/Listen 8080/' /etc/httpd/conf/httpd.conf \
|
||||
&& chgrp -R 0 /var/log/httpd /var/run/httpd \
|
||||
&& chmod -R g=u /var/log/httpd /var/run/httpd
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
USER 1001
|
||||
|
||||
ENTRYPOINT ["httpd"]
|
||||
CMD ["-D", "FOREGROUND"]
|
||||
|
||||
Reference in New Issue
Block a user