-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
47 lines (43 loc) · 950 Bytes
/
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
FROM php:7.2
RUN apt-get update && \
apt-get install --no-install-recommends -y \
git \
libcurl4-gnutls-dev \
libicu-dev \
libmcrypt-dev \
libvpx-dev \
libjpeg-dev \
libpng-dev \
libxpm-dev \
zlib1g-dev \
libfreetype6-dev \
libxml2-dev \
libexpat1-dev \
libbz2-dev \
libgmp3-dev \
libldap2-dev \
unixodbc-dev \
libpq-dev \
libsqlite3-dev \
libaspell-dev \
libsnmp-dev \
libpcre3-dev \
libtidy-dev -yqq
RUN docker-php-ext-install \
mbstring \
pdo_mysql \
curl \
json \
intl \
gd \
xml \
zip \
bz2 \
opcache
RUN pecl install -o -f redis && \
docker-php-ext-enable redis && \
docker-php-ext-enable gd
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
php composer-setup.php && \
mv composer.phar /usr/local/bin/composer && \
php -r "unlink('composer-setup.php');"