-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·31 lines (26 loc) · 856 Bytes
/
Dockerfile
File metadata and controls
executable file
·31 lines (26 loc) · 856 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
29
30
31
FROM php:7-fpm
# Install modules
COPY php-fpm.conf /usr/local/etc/php-fpm.conf
RUN mkdir /var/log/php-fpm/
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
RUN apt-get update && apt-get install -y \
libmcrypt-dev \
libicu-dev \
libpng-dev \
mysql-client \
&& docker-php-ext-install pdo_mysql \
&& docker-php-ext-install iconv \
&& docker-php-ext-install mcrypt \
&& docker-php-ext-install gd \
&& docker-php-ext-install intl \
&& docker-php-ext-install opcache \
&& docker-php-ext-install mbstring \
&& docker-php-ext-install mysqli
RUN apt-get update \
&& apt-get -y install \
libmagickwand-dev \
--no-install-recommends \
&& pecl install imagick \
&& docker-php-ext-enable imagick \
&& rm -r /var/lib/apt/lists/*
CMD ["php-fpm"]