Browse Source

feat: show php-fpm log to stdout

master v1.2.3-rc1
Dnomd343 2 years ago
parent
commit
2172797ddb
  1. 2
      Dockerfile
  2. 2
      kms.php

2
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/

2
kms.php

@ -1,7 +1,7 @@
#!/usr/bin/env php8
<?php
$VERSION = 'v1.2.3';
$VERSION = 'v1.2.3-rc1';
require_once './src/Daemon.php';
require_once './src/Logger.php';

Loading…
Cancel
Save