Skip to content

Commit 91607d4

Browse files
authored
Update Dockerfile
Add both yaml and zip extensions
1 parent a85c324 commit 91607d4

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

Dockerfile

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,29 @@
11
FROM 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+
47
RUN 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
1219
RUN 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
1827
RUN a2enmod rewrite
1928
RUN a2enmod headers
2029
RUN a2enmod expires
@@ -24,4 +33,4 @@ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
2433
ENV APACHE_DOCUMENT_ROOT /var/www/html/public
2534

2635
RUN 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

0 commit comments

Comments
 (0)