Create a Dockerfile with PHP + MySQL (MariaDB)

Tiempo de lectura: 2 minutos Reading Time: 2 minutes Here’s an example of a Dockerfile to create a web server with PHP and MariaDB: # Define the Docker base image FROM php:7.4-apache # Update package repositories RUN apt-get update # Install necessary dependencies RUN apt-get install -y \ mariadb-client \ libzip-dev \ zip \ unzip # Install required PHP extensions … Read more