FROM php:7.4-fpm
WORKDIR /var/www/html
RUN apt-get update
RUN apt-get install -y libmcrypt-dev curl
RUN apt-get install -y build-essential
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN apt install zip unzip
RUN pecl install mcrypt
RUN apt-get install -y \
libzip-dev \
zip \
&& docker-php-ext-install zip
RUN docker-php-ext-install pdo pdo_mysql
RUN docker-php-ext-enable pdo pdo_mysql mcrypt
RUN docker-php-ext-install opcache