1
0
mirror of https://github.com/Intervention/image.git synced 2025-09-02 18:32:56 +02:00

Clean up docker development environment

This commit is contained in:
Oliver Vogel
2024-01-14 10:49:20 +01:00
parent aa57d1c4ca
commit a7ec9746fa
2 changed files with 16 additions and 22 deletions

View File

@@ -1,36 +1,22 @@
FROM php:8.1-cli
# install dependencies
RUN apt update \
&& apt install -y \
libpng-dev \
libicu-dev \
libavif-dev \
libpq-dev \
libzip-dev \
zip \
zlib1g-dev \
locales \
locales-all \
libmagickwand-dev \
libwebp-dev \
libpng-dev \
libavif-dev \
&& pecl install imagick \
&& pecl install xdebug \
&& docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-avif \
&& docker-php-ext-enable imagick \
&& docker-php-ext-enable \
imagick \
xdebug \
&& docker-php-ext-install \
intl \
opcache \
pdo \
pdo_pgsql \
pdo_mysql \
pgsql \
fileinfo \
mysqli \
gd \
bcmath \
exif \
zip \
&& apt-get clean
# install composer
#
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
COPY --from=composer /usr/bin/composer /usr/bin/composer