1
0
mirror of https://github.com/Intervention/image.git synced 2025-01-16 19:58:14 +01:00
intervention_image/Dockerfile

25 lines
643 B
Docker
Raw Normal View History

FROM php:8.1-cli
2023-09-28 17:48:25 +02:00
# install dependencies
2023-09-28 17:48:25 +02:00
RUN apt update \
&& apt install -y \
libmagickwand-dev \
libwebp-dev \
libpng-dev \
libavif-dev \
git \
zip \
2023-09-28 17:48:25 +02:00
&& pecl install imagick \
&& pecl install xdebug \
2023-10-03 17:24:52 +02:00
&& docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-avif \
&& docker-php-ext-enable \
imagick \
xdebug \
2023-09-28 17:48:25 +02:00
&& docker-php-ext-install \
gd \
exif \
&& apt-get clean
# install composer
COPY --from=composer /usr/bin/composer /usr/bin/composer