-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
60 lines (47 loc) · 1.09 KB
/
Dockerfile
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
FROM php:8.3-fpm
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmagickwand-dev \
libmcrypt-dev \
libpng-dev \
libzip-dev \
unzip \
ffmpeg
# Imagick for php8.3 is broken right now, see https://github.com/Imagick/imagick/pull/641
RUN pecl install \
redis \
# imagick \
xdebug
RUN docker-php-ext-enable \
redis \
# imagick \
xdebug
# So for now we need to build imagick from source
RUN apt-get install -y git
RUN git clone https://github.com/Imagick/imagick.git --depth 1 /tmp/imagick && \
cd /tmp/imagick && \
phpize && \
./configure && \
make && \
make install
RUN docker-php-ext-enable imagick
RUN docker-php-ext-configure \
gd --with-freetype --with-jpeg
RUN docker-php-ext-configure \
calendar
RUN docker-php-ext-configure \
pcntl --enable-pcntl
RUN docker-php-ext-install \
exif \
-j$(nproc) \
bcmath \
gd \
intl \
pdo \
pdo_mysql \
soap \
zip \
calendar \
pcntl
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer