32 lines
No EOL
744 B
Groff
32 lines
No EOL
744 B
Groff
FROM ubuntu:20.04
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt-get update && apt-get install -y software-properties-common
|
|
RUN add-apt-repository ppa:ondrej/php
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
php7.4-fpm \
|
|
php7.4-mysql \
|
|
php7.4-xml \
|
|
php7.4-soap \
|
|
php7.4-mbstring \
|
|
php7.4-curl \
|
|
php7.4-dev \
|
|
git \
|
|
wget
|
|
|
|
# Install php-spy
|
|
RUN git clone https://github.com/adsr/phpspy.git \
|
|
&& cd phpspy \
|
|
&& make \
|
|
&& mv phpspy /usr/local/bin \
|
|
&& cd .. \
|
|
&& rm -rf phpspy
|
|
|
|
RUN sed -i 's/;clear_env = no/clear_env = no/' /etc/php/7.4/fpm/pool.d/www.conf
|
|
RUN sed -i 's/listen = \/run\/php\/php7.4-fpm.sock/listen = 9074/' /etc/php/7.4/fpm/pool.d/www.conf
|
|
|
|
EXPOSE 9074
|
|
|
|
CMD ["php-fpm7.4", "-F"] |