climbatize/php-fpm-mysql

By climbatize

Updated about 1 year ago

A php-fpm 8 image with pre-embedded PDO and MySQLi plugins

Image
Languages & frameworks
0

602

climbatize/php-fpm-mysql repository overview

This image is a simple convenience to use php:8-fpm image with mySQLi and PDO MySQL extensions directly from a docker compose file. It is based on the following Dockerfile:

php-fpm-mysql:alpine (running latest stable php-fpm on Alpine distro)

FROM php:alpine
MAINTAINER Yepngo "[email protected]"
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN apk add zlib-dev libpng-dev
ENV LIBRARY_PATH=/lib:/usr/lib
RUN chmod uga+x /usr/local/bin/install-php-extensions && sync
RUN docker-php-ext-install mysqli pdo pdo_mysql bcmath exif gd zip intl

php-fpm-mysql:alpine-wordpress (same as alpine with common php extensions needed by Wordpress )

FROM php:fpm-alpine
MAINTAINER Yepngo "[email protected]"
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN apk update && apk upgrade && apk add --no-cache tar curl
RUN apk add zlib-dev libpng-dev
ENV LIBRARY_PATH=/lib:/usr/lib
RUN chmod uga+x /usr/local/bin/install-php-extensions && sync
RUN docker-php-ext-install mysqli pdo pdo_mysql bcmath exif gd
RUN install-php-extensions https://codeload.github.com/Imagick/imagick/tar.gz/7088edc353f53c4bc644573a79cdcd67a726ae16
RUN install-php-extensions zip
RUN install-php-extensions intl

php-fpm-mysql:8

FROM php:8
MAINTAINER Yepngo "[email protected]"
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN apt-get update && apt-get install -y zlib1g-dev libpng-dev
ENV LIBRARY_PATH=/lib:/usr/lib
RUN chmod uga+x /usr/local/bin/install-php-extensions && sync
RUN docker-php-ext-install mysqli pdo pdo_mysql bcmath exif gd zip intl

php-fpm-mysql:7

FROM php:7
MAINTAINER Yepngo "[email protected]"
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN apt-get update && apt-get install -y zlib1g-dev libpng-dev
ENV LIBRARY_PATH=/lib:/usr/lib
RUN chmod uga+x /usr/local/bin/install-php-extensions && sync
RUN docker-php-ext-install mysqli pdo pdo_mysql bcmath exif gd zip intl

php-fpm-mysql:5

FROM php:5-fpm
RUN docker-php-ext-install mysqli pdo pdo_mysql

Tag summary

Content type

Image

Digest

sha256:0f8fcc1db

Size

202.5 MB

Last updated

about 1 year ago

docker pull climbatize/php-fpm-mysql:7