Dockerfile:

My Image

FROM php:8.0-apache

RUN apt-get update && apt-get install -y \ git \ unzip \ zip \ libzip-dev \ && docker-php-ext-install mysqli zip \ && a2enmod rewrite \ && rm -rf /var/lib/apt/lists/

git: A tool to grab recipes (code) from a friend's kitchen (GitHub). unzip, zip, libzip-dev: These are your basic tools to open packages (compressed files). mysqli: An ingredient that lets you cook using MySQL databases(works with databases). a2enmod rewrite: Enables a special tool in your oven (Apache) so you can cook custom meals (create cleaner URLs in your app).

COPY --from=composer:latest /usr/bin/composer /usr/bin/composer

WORKDIR /var/www/html

RUN composer require erusev/parsedown

CMD ["apache2-foreground"]

In Summary