mirror of
https://github.com/Intervention/image.git
synced 2025-08-21 21:15:11 +02:00
Clean up docker development environment
This commit is contained in:
30
Dockerfile
30
Dockerfile
@@ -1,36 +1,22 @@
|
|||||||
FROM php:8.1-cli
|
FROM php:8.1-cli
|
||||||
|
|
||||||
|
# install dependencies
|
||||||
RUN apt update \
|
RUN apt update \
|
||||||
&& apt install -y \
|
&& apt install -y \
|
||||||
libpng-dev \
|
|
||||||
libicu-dev \
|
|
||||||
libavif-dev \
|
|
||||||
libpq-dev \
|
|
||||||
libzip-dev \
|
|
||||||
zip \
|
|
||||||
zlib1g-dev \
|
|
||||||
locales \
|
|
||||||
locales-all \
|
|
||||||
libmagickwand-dev \
|
libmagickwand-dev \
|
||||||
libwebp-dev \
|
libwebp-dev \
|
||||||
|
libpng-dev \
|
||||||
|
libavif-dev \
|
||||||
&& pecl install imagick \
|
&& pecl install imagick \
|
||||||
|
&& pecl install xdebug \
|
||||||
&& docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-avif \
|
&& 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 \
|
&& docker-php-ext-install \
|
||||||
intl \
|
|
||||||
opcache \
|
|
||||||
pdo \
|
|
||||||
pdo_pgsql \
|
|
||||||
pdo_mysql \
|
|
||||||
pgsql \
|
|
||||||
fileinfo \
|
|
||||||
mysqli \
|
|
||||||
gd \
|
gd \
|
||||||
bcmath \
|
|
||||||
exif \
|
exif \
|
||||||
zip \
|
|
||||||
&& apt-get clean
|
&& apt-get clean
|
||||||
|
|
||||||
# install composer
|
# install composer
|
||||||
#
|
COPY --from=composer /usr/bin/composer /usr/bin/composer
|
||||||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
|
||||||
|
@@ -7,6 +7,14 @@ services:
|
|||||||
command: bash -c "composer install && ./vendor/bin/phpunit -vvv"
|
command: bash -c "composer install && ./vendor/bin/phpunit -vvv"
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/project
|
- ./:/project
|
||||||
|
coverage:
|
||||||
|
build: ./
|
||||||
|
working_dir: /project
|
||||||
|
command: bash -c "composer install && ./vendor/bin/phpunit --coverage-text"
|
||||||
|
volumes:
|
||||||
|
- ./:/project
|
||||||
|
environment:
|
||||||
|
- XDEBUG_MODE=coverage
|
||||||
analysis:
|
analysis:
|
||||||
build: ./
|
build: ./
|
||||||
working_dir: /project
|
working_dir: /project
|
||||||
|
Reference in New Issue
Block a user