mirror of
https://github.com/Intervention/image.git
synced 2025-01-16 19:58:14 +01:00
Add docker test environment
This commit is contained in:
parent
f44205538b
commit
84d46278f7
35
Dockerfile
Normal file
35
Dockerfile
Normal file
@ -0,0 +1,35 @@
|
||||
FROM php:8-cli
|
||||
|
||||
RUN apt update \
|
||||
&& apt install -y \
|
||||
libpng-dev \
|
||||
libicu-dev \
|
||||
libpq-dev \
|
||||
libzip-dev \
|
||||
zip \
|
||||
zlib1g-dev \
|
||||
locales \
|
||||
locales-all \
|
||||
libmagickwand-dev \
|
||||
libwebp-dev \
|
||||
&& pecl install imagick \
|
||||
&& docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp \
|
||||
&& docker-php-ext-enable imagick \
|
||||
&& 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
|
9
docker-compose.yml
Normal file
9
docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
tests:
|
||||
build: ./
|
||||
working_dir: /project
|
||||
command: bash -c "composer install && ./vendor/bin/phpunit -vvv"
|
||||
volumes:
|
||||
- ./:/project
|
Loading…
x
Reference in New Issue
Block a user