FROM local/nginx:latest RUN apt -y install lsb-release ca-certificates curl RUN apt -y install curl RUN curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb RUN dpkg -i /tmp/debsuryorg-archive-keyring.deb RUN sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' RUN apt update -y run apt dist-upgrade -y run apt install php8.3-fpm -y run apt install php8.3-mysql -y run apt install php8.3-ctype -y run apt install php8.3-curl -y run apt install php8.3-dom -y run apt install php8.3-fileinfo -y run apt install php8.3-gd -y run apt install php8.3-xmlrpc -y run apt install php8.3-mbstring -y run apt install php8.3-posix -y run apt install php8.3-xml -y run apt install php8.3-zip -y run apt install -y php8.3-redis run apt install -y php8.3-memcache run apt install -y php8.3-memcached COPY php-fpm/php-fpm.sh /root/ RUN chmod a+x /root/php-fpm.sh CMD ['/bin/bash','/root/php-fpm.sh']