From a2ad39be274bec39a3774984e8adf66a9297182b Mon Sep 17 00:00:00 2001 From: Martijn de Boer Date: Mon, 12 Aug 2024 17:19:42 +0200 Subject: [PATCH] Add php/Dockerfile-8.4 --- php/Dockerfile-8.4 | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 php/Dockerfile-8.4 diff --git a/php/Dockerfile-8.4 b/php/Dockerfile-8.4 new file mode 100644 index 0000000..7ef5e22 --- /dev/null +++ b/php/Dockerfile-8.4 @@ -0,0 +1,32 @@ +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 \ + php8.4-fpm \ + php8.4-mysql \ + php8.4-xml \ + php8.4-soap \ + php8.4-mbstring \ + php8.4-curl \ + php8.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/8.4/fpm/pool.d/www.conf +RUN sed -i 's/listen = \/run\/php\/php8.4-fpm.sock/listen = 9084/' /etc/php/8.4/fpm/pool.d/www.conf + +EXPOSE 9084 + +CMD ["php-fpm8.4", "-F"] \ No newline at end of file