-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
53 lines (40 loc) · 1.5 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
FROM php:7.4-cli-alpine
# bash
RUN apk add --update --no-cache bash
# gmp
RUN apk add --update --no-cache gmp-dev \
&& docker-php-ext-install gmp
# mysqli, pdo, pdo_mysql, pdo_pgsql
RUN apk add --update --no-cache postgresql-dev \
&& docker-php-ext-install mysqli pdo pdo_mysql
# zip
RUN apk add --update --no-cache libzip-dev \
&& docker-php-ext-configure zip \
&& docker-php-ext-install zip
# exif
RUN apk add --update --no-cache exiftool \
&& docker-php-ext-install exif
# imagick
RUN apk add --update --no-cache build-base autoconf imagemagick imagemagick-dev \
&& pecl install imagick \
&& docker-php-ext-enable imagick
#RUN apk add --update --no-cache build-base imagemagick-dev php7-pecl-imagick autoconf \
# && echo "" | pecl install imagick \
# && echo "extension=imagick.so" > /usr/local/etc/php/conf.d/docker-php-ext-imagick.ini
# intl
RUN apk add --update --no-cache icu-dev \
&& docker-php-ext-configure intl \
&& docker-php-ext-install intl
# gd
RUN apk add --update --no-cache libpng-dev \
&& docker-php-ext-configure gd \
&& docker-php-ext-install gd
# bcmath
RUN apk add --update --no-cache php-bcmath \
&& docker-php-ext-configure bcmath \
&& docker-php-ext-install bcmath
# git client
RUN apk add --update --no-cache git
# composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --1 --filename=composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --2 --filename=composer2