-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (25 loc) · 733 Bytes
/
Dockerfile
File metadata and controls
28 lines (25 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM php:8.1-cli
# install dependencies
RUN apt update \
&& apt install -y \
libmagickwand-dev \
libwebp-dev \
libpng-dev \
libavif-dev \
git \
zip \
&& pecl install imagick \
&& pecl install xdebug \
&& docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-avif \
&& docker-php-ext-enable \
imagick \
xdebug \
&& docker-php-ext-install \
gd \
exif \
&& apt-get clean
# install composer
COPY --from=composer /usr/bin/composer /usr/bin/composer
# install composer dependencies
COPY composer.json composer.lock ./
RUN composer install