-
Notifications
You must be signed in to change notification settings - Fork 69
/
Copy pathDockerFile
55 lines (46 loc) · 1.6 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
FROM php:8.2-fpm
ARG user
ARG uid
RUN apt update && apt install -y git curl unzip software-properties-common
RUN apt-get update && apt-get install -y -qq \
build-essential chrpath debhelper dh-exec dpkg-dev g++ ghostscript gsfonts libbz2-dev \
libdjvulibre-dev libexif-dev libfftw3-dev libfontconfig1-dev libfreetype6-dev \
libjpeg-dev liblcms2-dev liblqr-1-0-dev libltdl-dev liblzma-dev libopenexr-dev \
libpango1.0-dev libperl-dev libpng-dev librsvg2-bin librsvg2-dev libtiff-dev libwebp-dev \
libwmf-dev libx11-dev libxext-dev libxml2-dev libxt-dev pkg-config pkg-kde-tools zlib1g-dev
RUN apt clean && rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y \
git \
curl \
unzip \
libzip-dev \
libpng-dev \
libonig-dev \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) \
pdo \
pdo_mysql \
mbstring \
exif \
pcntl \
bcmath \
gd \
zip
RUN git clone https://github.com/ImageMagick/ImageMagick.git ImageMagick-7.1.1 && \
cd ImageMagick-7.1.1 && \
./configure --with-rsvg --with-modules && \
make && \
make install && \
ldconfig /usr/local/lib
RUN git clone https://github.com/Imagick/imagick && \
cd imagick && \
phpize && \
./configure && \
make && \
make install
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
RUN useradd -G www-data,root -u $uid -d /home/$user $user
RUN mkdir -p /home/$user/.composer && \
chown -R $user:$user /home/$user
WORKDIR /var/www
USER $user