PHP Images not supported by PHP Oficial Docker Images
320
Repository containing php images not supported by Docker Oficial PHP Images
5.3-apache, 5.3.29-apache (5.3/apache/Dockerfile)5.3-fpm, 5.3.29-fpm (5.3/fpm/Dockerfile)These images contains PHP compiled with:
(@todo)
Create a Dockerfile in your PHP project
FROM brunogasparin/php:5.3-apache
COPY src/ /var/www/html/
Where src/ is the directory containing all your php code. Then, run the commands to build and run the Docker image:
$ docker build -t my-php-app .
$ docker run -d --name my-running-app my-php-app
For development purpose, or to change php configuration, you can add a custom php.ini to the container. COPY it into /usr/local/etc/php by adding one more line to the Dockerfile:
FROM brunogasparin/php:5.3-apache
COPY config/php.ini /usr/local/etc/php/
COPY src/ /var/www/html/
Where src/ is the directory containing all your php code and config/ contains your php.ini file.
@todo
These PHP images are based on Oficial PHP Docker images. So, you have access to the helper scripts
docker-php-ext-configure, docker-php-ext-install, and docker-php-ext-enable. See PHP Oficial
Images for more details.
Content type
Image
Digest
Size
150.5 MB
Last updated
over 10 years ago
docker pull brunogasparin/php:5.3-apache