From 550bcea00d6f5c9ed11f0c4f2aac3aa2f4526472 Mon Sep 17 00:00:00 2001 From: xZero707 Date: Fri, 20 Jan 2023 17:38:08 +0100 Subject: [PATCH] Remove /etc/services.d/php-fpm/ ties to nlss/php-nginx:7.4 image --- Dockerfile | 3 --- rootfs/etc/services.d/php-fpm/run | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100755 rootfs/etc/services.d/php-fpm/run diff --git a/Dockerfile b/Dockerfile index 7c878a8..31b56ee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,9 +20,6 @@ COPY --from=nlss/base-alpine:3.14 ["/etc/services.d/cron/", "/etc/services.d/cro # Add php-fpm configuration COPY --from=nlss/php-nginx:7.4 ["/usr/local/etc/php-fpm.d/", "/usr/local/etc/php-fpm.d/"] -# Add php-fpm service -COPY --from=nlss/php-nginx:7.4 ["/etc/services.d/php-fpm/", "/etc/services.d/php-fpm/"] - # Add nginx service and configuration COPY --from=nlss/php-nginx:7.4 ["/etc/services.d/nginx/", "/etc/services.d/nginx/"] COPY --from=nlss/php-nginx:7.4 ["/etc/nginx/", "/etc/nginx/"] diff --git a/rootfs/etc/services.d/php-fpm/run b/rootfs/etc/services.d/php-fpm/run new file mode 100755 index 0000000..362ee28 --- /dev/null +++ b/rootfs/etc/services.d/php-fpm/run @@ -0,0 +1,3 @@ +#!/bin/execlineb -P + +/usr/local/sbin/php-fpm -F \ No newline at end of file