php-fpm.yml 1.0 KB

123456789101112131415161718192021222324252627
  1. FROM local/nginx:latest
  2. RUN apt -y install lsb-release ca-certificates curl
  3. RUN apt -y install curl
  4. RUN curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
  5. RUN dpkg -i /tmp/debsuryorg-archive-keyring.deb
  6. 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'
  7. RUN apt update -y
  8. RUN apt dist-upgrade -y
  9. RUN apt install php8.3-fpm -y
  10. RUN apt install php8.3-mysql -y
  11. RUN apt install php8.3-ctype -y
  12. RUN apt install php8.3-curl -y
  13. RUN apt install php8.3-dom -y
  14. RUN apt install php8.3-fileinfo -y
  15. RUN apt install php8.3-gd -y
  16. RUN apt install php8.3-xmlrpc -y
  17. RUN apt install php8.3-mbstring -y
  18. RUN apt install php8.3-posix -y
  19. RUN apt install php8.3-xml -y
  20. RUN apt install php8.3-zip -y
  21. RUN apt install -y php8.3-redis
  22. RUN apt install -y php8.3-memcache
  23. RUN apt install -y php8.3-memcached
  24. COPY php-fpm/php-fpm.sh /root/
  25. RUN chmod a+x /root/php-fpm.sh
  26. CMD ['/bin/bash','/root/php-fpm.sh']