Skip to content

Commit 1baccfd

Browse files
committed
Add WEBP support
1 parent 72b713a commit 1baccfd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ENV APACHE_DOCUMENT_ROOT=/var/www/html/public
1010
RUN apt-get update -y && apt-get upgrade -y
1111
RUN apt-get install libapache2-mod-xsendfile -y && a2enmod xsendfile
1212
RUN a2enmod rewrite
13-
RUN apt-get install tree nano libzip-dev libwebp-dev libfreetype6-dev libjpeg62-turbo-dev libpng-dev zlib1g-dev libicu-dev -y
13+
RUN apt-get install tree nano libzip-dev libwebp-dev libfreetype6-dev libjpeg62-turbo-dev libpng-dev zlib1g-dev libicu-dev libwebp-dev -y
1414
RUN apt-get install npm -y
1515

1616
RUN docker-php-ext-install pdo_mysql \
@@ -22,6 +22,8 @@ RUN docker-php-ext-install pdo_mysql \
2222
&& docker-php-ext-install intl \
2323
&& docker-php-ext-install pcntl
2424

25+
RUN docker-php-ext-configure gd --with-webp;
26+
2527
# Set the correct permissions for the application files
2628
RUN chown -R www-data:www-data /var/www
2729

0 commit comments

Comments
 (0)