Last active
May 2, 2020 23:22
-
-
Save christianh814/2239002ec706a18fc2e159222f5b1a5b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM registry.access.redhat.com/ubi8/ubi:8.1 | |
RUN yum -y --disableplugin=subscription-manager -y module enable php:7.3 \ | |
&& yum -y install --disableplugin=subscription-manager httpd php \ | |
&& yum -y --disableplugin=subscription-manager clean all | |
ADD index.php /var/www/html/index.php | |
RUN sed -i 's/Listen 80/Listen 8080/' /etc/httpd/conf/httpd.conf \ | |
&& mkdir /run/php-fpm \ | |
&& chgrp -R 0 /var/log/httpd /var/run/httpd /run/php-fpm \ | |
&& chmod -R g=u /var/log/httpd /var/run/httpd /run/php-fpm | |
EXPOSE 8080 | |
USER 1001 | |
CMD /usr/sbin/php-fpm & /usr/sbin/httpd -D FOREGROUND |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment