summaryrefslogtreecommitdiffstats
path: root/ubi8-min-nginx-php74.dockerfile
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-07-22 09:49:11 +0200
committerRemi Collet <remi@remirepo.net>2021-07-22 09:49:11 +0200
commit8e7fdf04ee490cd300ce94a6689b11a84dd91140 (patch)
treea431f894235bbe0c4f915a43a830d52dcba1f4b7 /ubi8-min-nginx-php74.dockerfile
parent33a8c3f4fce628045afc2056369bee5bd076b837 (diff)
add nginx + php74 using ubi8-minimal
Diffstat (limited to 'ubi8-min-nginx-php74.dockerfile')
-rw-r--r--ubi8-min-nginx-php74.dockerfile17
1 files changed, 17 insertions, 0 deletions
diff --git a/ubi8-min-nginx-php74.dockerfile b/ubi8-min-nginx-php74.dockerfile
new file mode 100644
index 0000000..c7ceab1
--- /dev/null
+++ b/ubi8-min-nginx-php74.dockerfile
@@ -0,0 +1,17 @@
+FROM registry.access.redhat.com/ubi8-minimal:latest
+
+RUN echo -e "[php]\nname=php\nstream=7.4\nprofiles=common\nstate=enabled\n" >/etc/dnf/modules.d/php.module
+RUN echo -e "[nginx]\nname=nginx\nstream=1.18\nprofiles=common\nstate=enabled\n" >/etc/dnf/modules.d/nginx.module
+
+RUN microdnf update tzdata && \
+ microdnf install nginx php-fpm php-common php-cli && \
+ microdnf clean all
+
+RUN mkdir -p /run/php-fpm
+RUN echo '/usr/sbin/php-fpm --daemonize && /usr/sbin/nginx -g "daemon off;"' >/start.sh
+
+EXPOSE 80
+STOPSIGNAL SIGQUIT
+
+ENTRYPOINT ["bash"]
+CMD ["/start.sh"]