-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (24 loc) · 869 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
FROM php:fpm-alpine
RUN apk update && apk add --no-cache \
freetype-dev \
git \
libjpeg-turbo-dev \
libpng-dev \
libstdc++ \
libzip-dev \
openssh-client \
openssl-dev \
unzip \
&& apk add --no-cache --virtual build-dependencies $PHPIZE_DEPS \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) bcmath gd mysqli pcntl pdo_mysql zip \
&& pecl install mongodb \
&& pecl install redis \
&& pecl install swoole \
&& docker-php-ext-enable mongodb opcache redis swoole \
&& apk del build-dependencies \
&& pecl clear-cache \
&& rm -rf /tmp/pear/download/* \
&& curl -O https://getcomposer.org/composer-stable.phar \
&& mv composer-stable.phar /usr/local/bin/composer \
&& chmod +x /usr/local/bin/composer