Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
54 lines (48 loc) · 1.4 KB

File metadata and controls

54 lines (48 loc) · 1.4 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
FROM php:8.3-cli-alpine
ARG IMAGEMAGICK_VERSION=7.1.2-15
# install dependencies for building ImageMagick and PHP extensions
RUN apk add --no-cache \
jpeg-dev \
giflib-dev \
tiff-dev \
libpng-dev \
libwebp-dev \
libavif-dev \
libheif-dev \
harfbuzz-dev \
openjpeg-dev \
lcms2-dev \
freetype-dev \
git \
zip \
curl \
xz \
autoconf \
g++ \
make
# build and install ImageMagick from source
RUN curl -o /tmp/ImageMagick.tar.xz -sL \
"https://imagemagick.org/archive/releases/ImageMagick-${IMAGEMAGICK_VERSION}.tar.xz" \
&& cd /tmp \
&& tar xf ImageMagick.tar.xz \
&& cd "ImageMagick-${IMAGEMAGICK_VERSION}" \
&& ./configure \
&& make -j$(nproc) \
&& make install \
&& cd / \
&& rm -rf /tmp/ImageMagick*
# install PHP extensions
RUN 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
# install composer
COPY --from=composer /usr/bin/composer /usr/bin/composer
# setup entrypoint
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
Morty Proxy This is a proxified and sanitized view of the page, visit original site.