Last active
January 2, 2022 04:15
-
-
Save devbeno/b9f22b467fd9f4ef6016dce070400482 to your computer and use it in GitHub Desktop.
start1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.4.21-apache | |
ENV APACHE_DOCUMENT_ROOT /var/www/html/web | |
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf | |
RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf | |
RUN sed -i '/<Directory \${APACHE_DOCUMENT_ROOT}>/,/<\/Directory>/ s/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf | |
RUN a2enmod rewrite | |
RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli | |
RUN apt-get update && apt-get install -y \ | |
libfreetype6-dev \ | |
libjpeg62-turbo-dev \ | |
libpng-dev \ | |
libmcrypt-dev \ | |
zlib1g-dev \ | |
libxml2-dev \ | |
libzip-dev \ | |
libonig-dev \ | |
graphviz \ | |
libmagickwand-dev --no-install-recommends | |
RUN pecl install imagick \ | |
&& docker-php-ext-install -j$(nproc) iconv \ | |
&& docker-php-ext-configure gd --with-freetype --with-jpeg \ | |
&& docker-php-ext-install -j$(nproc) gd \ | |
&& docker-php-ext-install zip \ | |
&& docker-php-ext-enable imagick \ | |
&& docker-php-ext-configure intl \ | |
&& docker-php-ext-install intl \ | |
&& pecl install redis && docker-php-ext-enable redis |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment