From 2172797ddbbb5395f8b5088c479c9859f05a2210 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Sat, 29 Oct 2022 14:00:35 +0800 Subject: [PATCH] feat: show php-fpm log to stdout --- Dockerfile | 2 +- kms.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 719caab..51a1f85 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,7 @@ RUN strip /tmp/*.so* FROM alpine:3.16 AS asset RUN apk add php8-fpm WORKDIR /asset/etc/php8/ -RUN cat /etc/php8/php-fpm.conf | sed 's/^;\(pid\)/\1/' > php-fpm.conf +RUN cat /etc/php8/php-fpm.conf | sed 's/^;\(pid\)/\1/;/error_log/a\error_log = /dev/stdout' > php-fpm.conf WORKDIR /asset/etc/php8/php-fpm.d/ RUN cat /etc/php8/php-fpm.d/www.conf | sed 's?127.0.0.1:9000?/run/php-fpm.sock?' > www.conf COPY --from=vlmcsd /tmp/vlmcs* /asset/usr/bin/ diff --git a/kms.php b/kms.php index 56c760a..b7e9716 100755 --- a/kms.php +++ b/kms.php @@ -1,7 +1,7 @@ #!/usr/bin/env php8