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']