-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
48 lines (39 loc) · 1016 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
48
FROM php:7.2-cli-alpine
RUN set -x \
&& apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS \
imagemagick-dev \
libtool \
libcurl \
freetype-dev \
libjpeg-turbo-dev \
libxml2-dev \
libpng-dev \
bzip2-dev \
libressl-dev \
curl \
git \
cyrus-sasl-dev \
zlib-dev \
make \
&& docker-php-ext-configure gd \
--with-gd \
--with-freetype-dir=/usr/include/ \
--with-png-dir=/usr/include/ \
--with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install gd
RUN docker-php-ext-install \
bz2 \
bcmath \
mbstring
RUN pecl install \
imagick-3.4.3
RUN docker-php-ext-enable \
imagick
#Download dependencies
# Set memory limit
RUN echo "memory_limit=1024M" > /usr/local/etc/php/conf.d/memory-limit.ini
# Set environmental variables
ENV COMPOSER_HOME /root/composer
# Install Composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
CMD ["php"]