Skip to content

Commit

Permalink
fix(docker): PHP GD extension support for jpeg and webp
Browse files Browse the repository at this point in the history
  • Loading branch information
mrflos committed May 20, 2024
1 parent 651401f commit 2b1cc7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# Yeswiki dev image
FROM php:8.2-fpm

RUN apt-get update && apt-get install -y libpng-dev libzlcore-dev libzip-dev git unzip && \
RUN apt-get update && apt-get install -y libfreetype-dev libjpeg-dev libpng-dev libwebp-dev libzlcore-dev libzip-dev git unzip && \
rm -rf /var/lib/apt/lists/*

RUN docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp
RUN docker-php-ext-install mysqli gd zip

COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
Expand Down

0 comments on commit 2b1cc7b

Please sign in to comment.