Sign inSign up

user335/laravel-php

By user335

•Updated about 2 years ago

includes all php depedencies for running laravel app including composer & php extensions

Image
Web servers
0

162

user335/laravel-php repository overview

⁠Docker Repository Overview
⁠Overview

This Docker repository contains a Dockerfile designed to create a lightweight PHP environment based on the Alpine Linux distribution. The image is specifically tailored for PHP development and deployment, including essential PHP extensions and Composer for dependency management.

⁠Key Features
  • Base Image: Utilizes the php:alpine image, which provides a minimal PHP environment based on Alpine Linux, known for its small size and security.
  • Essential Tools:
    • Adds git and zip via the Alpine package manager (apk) for version control and file compression needs.
    • Downloads and installs the php extensions to simplify the installation of laravel apps
  • PHP Extensions: Installs the following PHP extensions necessary for various development tasks:
    • gd: Provides image processing capabilities.
    • mysqli, pdo, pdo_mysql: Essential for database interactions, particularly with MySQL.
    • zip: Enables handling of ZIP archives.
    • pcntl: Facilitates process control.
    • exif: Supports reading EXIF metadata from images.
  • Composer Installation:
    • Downloads and installs Composer, a dependency management tool for PHP, placing it in /usr/bin/ for easy access.
⁠Usage

To use this image, run the following commands:

docker run -it user335/laravel-php:8.2
docker run -it user335/laravel-php:8.1

This image is ideal for PHP developers who need a robust environment with common extensions and tools pre-installed, reducing the time spent on setup and configuration.

⁠Extensions and Tools Installation Process
  1. Installation of PHP Extensions: The image contains common PHP extensions by handling dependencies and other complexities.
  2. Composer Setup: Composer is downloaded directly from the official source, ensuring you have the latest version. It's then installed into /usr/bin/, making it accessible from anywhere in the container.
⁠Conclusion

This Docker image offers a streamlined, efficient, and secure environment for PHP development. Its minimal Alpine base ensures a small footprint, while the included extensions and tools cater to a wide range of PHP development needs.

Tag summary

Content type

Image

Digest

sha256:62c64f41f…

Size

46.2 MB

Last updated

about 2 years ago

docker pull user335/laravel-php:8.2