fork download
  1. # Containerfile_PHP-FPM
  2.  
  3. # Start with PHP 8 FPM (FastCGI Process Manager)
  4. FROM registry.opensuse.org/opensuse/bci/php-fpm:latest
  5.  
  6. # Install PHP extensions
  7. RUN zypper -n install \
  8. curl \
  9. wget \
  10. nano \
  11. iputils \
  12. netcat-openbsd \
  13. net-tools \
  14. git \
  15. php8 \
  16. php8-devel \
  17. php8-curl \
  18. php8-zip \
  19. php8-mbstring \
  20. php8-fileinfo \
  21. php8-gd \
  22. php8-mysql \
  23. php8-fpm \
  24. php8-xdebug
  25.  
  26.  
  27. # Add PHP config
  28. COPY ./php-fpm/www.conf /etc/php8/fpm/php-fpm.d/www.conf
  29. COPY ./php-fpm/php-fpm.conf /etc/php8/fpm/php-fpm.conf
  30. COPY ./php-fpm/php.ini /etc/php8/fpm/php.ini
  31.  
  32. # Set permissions after adding files
  33. RUN mkdir -p /srv/www/htdocs && \
  34. chmod -R 755 /srv/www/htdocs && \
  35. chmod 1777 /tmp # sticky bit for /tmp
  36.  
  37. # Set working directory.
  38. WORKDIR /srv/www/htdocs
  39.  
  40. # Set volumes.
  41. ADD ["htdocs", "/srv/www/htdocs"]
  42.  
  43. # What command to run
  44. CMD ["php-fpm", "-F"]
  45.  
  46. # Document that we use port 9000, 9003
  47. EXPOSE 9000 9003
  48.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty