Add php/Dockerfile-8.3

This commit is contained in:
Martijn de Boer 2024-08-12 17:19:08 +02:00
parent c3444a68b7
commit 30c4587935

32
php/Dockerfile-8.3 Normal file
View file

@ -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.3-fpm \
php8.3-mysql \
php8.3-xml \
php8.3-soap \
php8.3-mbstring \
php8.3-curl \
php8.3-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.3/fpm/pool.d/www.conf
RUN sed -i 's/listen = \/run\/php\/php8.3-fpm.sock/listen = 9083/' /etc/php/8.3/fpm/pool.d/www.conf
EXPOSE 9083
CMD ["php-fpm8.3", "-F"]