Browse Source

fix: php-fpm socket permission

master
Dnomd343 2 years ago
parent
commit
726a5c7e61
  1. 3
      Dockerfile

3
Dockerfile

@ -23,7 +23,8 @@ RUN apk add php8-fpm
WORKDIR /asset/etc/php8/
RUN cat /etc/php8/php-fpm.conf | sed 's/^;\(pid\)/\1/' > 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
RUN cat /etc/php8/php-fpm.d/www.conf | sed 's?127.0.0.1:9000?/run/php-fpm.sock?' > www.conf && \
echo -e 'listen.owner = nginx\nlisten.group = nginx' >> www.conf
COPY --from=vlmcsd /tmp/vlmcs* /asset/usr/bin/
COPY --from=iconv /tmp/libiconv.so.2 /asset/usr/local/lib/
COPY --from=iconv /tmp/iconv.so /asset/usr/lib/php8/modules/

Loading…
Cancel
Save