File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 11FROM php:7.4.0-apache
22
3- RUN apt-get update && apt-get install -y zlib1g-dev libpng-dev
3+ RUN apt-get update && apt-get install -y \
4+ zlib1g-dev \
5+ libpng-dev
6+
47RUN apt-get install -y \
58 libwebp-dev \
69 libjpeg62-turbo-dev \
710 libpng-dev libxpm-dev \
811 libfreetype6-dev \
912 git \
10- curl
13+ curl \
14+ zip \
15+ libzip-dev \
16+ libyaml-dev
1117
18+ RUN yes | pecl install yaml
1219RUN yes | pecl install xdebug \
1320 && echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
1421 && echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
1522 && echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini
1623
17- RUN docker-php-ext-install pdo_mysql mysqli gd
24+ RUN docker-php-ext-enable yaml
25+ RUN docker-php-ext-configure zip
26+ RUN docker-php-ext-install pdo_mysql mysqli gd zip
1827RUN a2enmod rewrite
1928RUN a2enmod headers
2029RUN a2enmod expires
@@ -24,4 +33,4 @@ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
2433ENV APACHE_DOCUMENT_ROOT /var/www/html/public
2534
2635RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
27- RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
36+ RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
You can’t perform that action at this time.
0 commit comments