Sign inSign up

nanorocks/php-symfony

By nanorocks

•Updated over 2 years ago

Php8.2 fpm with extensions for Symfony framework, MySql, PSQL, etc. Composer included.

Image
0

254

nanorocks/php-symfony repository overview

Symfony-Optimized Docker Image

This Docker image is meticulously crafted based on the official php:8.2-fpm image, tailored to be a robust environment perfectly suited for Symfony applications. Here's what makes it stand out:

Key Features:

  • Base Image: Constructed upon php:8.2-fpm, ensuring seamless compatibility with PHP 8.2 and establishing a lightweight yet highly efficient foundation.
  • User Configuration: Operates with a non-root user, bolstering security measures by minimizing potential vulnerabilities.
  • Work Directory: Set to /var/www/html, the default working directory for Symfony projects. This simplifies the setup for both development and deployment.
  • Composer: Comes pre-installed, facilitating easy management of PHP dependencies and streamlining your project's dependency management process.
  • Image Optimizations: Equipped with various image optimization tools such as jpegoptim, optipng, pngquant, gifsicle, and webp to boost the overall performance of your Symfony application.

Installed PHP Extensions:

  • GD Extension: Configured with support for image processing, capable of handling common image formats.
  • Database Extensions: PDO MySQL, MySQLi, and PDO PostgreSQL extensions are included, catering to Symfony applications that interact with different database systems.
  • ZIP Extension: Essential for managing ZIP archives and providing additional functionality to Symfony applications.
  • SOAP Extension: Installed to support SOAP-based communication within Symfony projects.
  • AMQP Extension: Enables seamless communication with AMQP-based message queues, a common requirement for many Symfony applications.

Additional Components:

  • Libraries: Various essential libraries, including libpng, zlib, libxml2, libzip, libonig, are pre-installed to support the diverse functionalities provided by Symfony and its dependencies.
  • Git: Included to facilitate version control and package management during the development lifecycle.

This Docker image is an optimal choice for Symfony developers in search of a ready-to-use Docker environment. With PHP 8.2 and essential Symfony dependencies, it streamlines your development workflow, making it available on Docker Hub at nanorocks/php-symfony⁠.

Tag summary

Content type

Image

Digest

sha256:8ad293736…

Size

277.8 MB

Last updated

over 2 years ago

docker pull nanorocks/php-symfony