diff --git a/Dockerfile b/Dockerfile index d97e74ce..134c2558 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,4 +23,39 @@ EXPOSE 80 443 RUN rm -f /run/apache2/apache2.pid -CMD apachectl -DFOREGROUND -e info \ No newline at end of file +CMD apachectl -DFOREGROUND -e info + +#PHP 7.4 part +FROM php:7.4-fpm + +RUN pecl install apcu + +RUN echo "extension=apcu.so" > /usr/local/etc/php/conf.d/apcu.ini + +RUN apt update && apt install -y zip && docker-php-ext-install opcache + +# Composer +RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer + +RUN apt-get update \ + && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ + # needed for gd + libfreetype6-dev \ + libjpeg62-turbo-dev \ + libpng-dev \ + && rm -rf /var/lib/apt/lists/* + +RUN docker-php-ext-configure gd --with-freetype --with-jpeg \ + && docker-php-ext-install -j "$(nproc)" gd + +RUN apt-get update && \ + apt-get install -y \ + zlib1g-dev + +#install some base extensions +RUN apt-get install -y \ + libzip-dev \ + zip \ + && docker-php-ext-install zip + +RUN apt-get update && apt-get install -y libpq-dev && docker-php-ext-install pdo pdo_pgsql pdo_mysql \ No newline at end of file