-
Notifications
You must be signed in to change notification settings - Fork 0
/
php-8-fpm.Dockerfile
37 lines (35 loc) · 1.19 KB
/
php-8-fpm.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
FROM php:8-fpm-alpine
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
RUN apk update \
&& apk add --no-cache \
--virtual=.build-dependencies \
build-base \
autoconf \
&& apk add --no-cache \
openssh-client \
git \
freetype \
freetype-dev \
libjpeg-turbo \
libjpeg-turbo-dev \
libpng \
libpng-dev \
libmcrypt \
libmcrypt-dev \
libmemcached \
libmemcached-dev \
libzip-dev \
&& docker-php-ext-install -j$(nproc) pdo_mysql mysqli opcache zip \
&& docker-php-ext-configure gd --enable-gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) gd \
&& docker-php-ext-install -j$(nproc) bcmath \
&& pecl install igbinary \
&& pecl install redis \
&& pecl install memcached \
&& pecl install mcrypt \
&& pecl clear-cache \
&& docker-php-ext-enable pdo_mysql mysqli opcache zip gd bcmath igbinary redis memcached mcrypt \
&& curl --silent --show-error https://getcomposer.org/installer | php \
&& mv composer.phar /usr/local/bin/composer \
&& apk del .build-dependencies \
&& rm -rf /tmp/*