PHP image for docker which includes PDO packages
93
This image is based on the PHP 7.4.30 Docker image from Apache. It adds Python packages which are needed to connect to a MySQL database via PDO.
################################################################
### Base Image
################################################################
# Apache PHP 7.4.30 - No Log4J Vulnerability
FROM php:7.4.30-apache
################################################################
### Packages
################################################################
# Add MySQLi, PDO, and PDO_MYSQL packages
RUN docker-php-ext-install mysqli pdo pdo_mysql
# Docker-Compose Version
version: "3.8"
################################################
# Services
################################################
services:
################################################
# PHP
################################################
php:
image: "automaatio/php:7.4.30-apache"
container_name: "php"
restart: unless-stopped
environment:
TZ: ${TZ}
ports:
- "80:80"
expose:
- "80"
volumes:
- "/home/docker/php:/var/www/html/"
Content type
Image
Digest
sha256:e851ff496…
Size
155.8 MB
Last updated
about 2 years ago
docker pull automaatio/php:7.4.30-apache