From 4a2cd57eec39922b9b568449c3a0b79e29a9eae5 Mon Sep 17 00:00:00 2001
From: Razique Mahroua <rmahroua@redhat.com>
Date: Mon, 16 Dec 2019 23:10:21 +0100
Subject: [PATCH] Fix an issue preventing php-fpm for reading the ACL on its socket when the container is running in rootless mode in Podman. Fix is compatible with Docker & podman

---
 php-ssl/Dockerfile |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/php-ssl/Dockerfile b/php-ssl/Dockerfile
index b53eca4..656b454 100644
--- a/php-ssl/Dockerfile
+++ b/php-ssl/Dockerfile
@@ -5,13 +5,17 @@
   creationDate="2019-12-13" \
   updatedDate="2019-12-13"
 
-USER 0
 RUN yum install -y --disableplugin=subscription-manager --nodocs \
   httpd php php-common net-tools procps-ng \
   mod_ssl \
   && yum clean all
 
 COPY httpd/httpd.conf /etc/httpd/conf/httpd.conf
+# PHP FPM configuration both compatible with Docker and Podman
+# Allows us to run php-fpm as a non-root user yet still let
+# Apache read the socket
+COPY httpd/www.conf /etc/php-fpm.d/www.conf
+
 ## SSL - This directive configures SSL support for the container
 COPY httpd/ssl.conf /etc/httpd/conf.d/ssl.conf
 ## End of SSL

--
Gitblit v1.9.3