Skip to content

Instantly share code, notes, and snippets.

@christianh814
Last active May 2, 2020 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christianh814/2239002ec706a18fc2e159222f5b1a5b to your computer and use it in GitHub Desktop.
Save christianh814/2239002ec706a18fc2e159222f5b1a5b to your computer and use it in GitHub Desktop.
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