-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
56 lines (53 loc) · 1.34 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
53
54
55
56
FROM ghcr.io/mileschou/xdebug:5.5
ENV COMPOSER_PATH /usr/local/bin/composer
# Install extensions
RUN set -xe && \
# Runtime dependency
apk add --no-cache \
libgmpxx \
libjpeg-turbo \
libmcrypt \
libmemcached-libs \
libpng \
make \
&& \
apk add --no-cache --virtual .build-deps \
autoconf \
cyrus-sasl-dev \
g++ \
gmp-dev \
libjpeg-turbo-dev \
libmcrypt-dev \
libmemcached-dev \
libpng-dev \
libxml2-dev \
zlib-dev \
&& \
docker-php-ext-configure gd \
--with-jpeg-dir=/usr/include/ \
--with-png-dir=/usr/include/ \
&& \
docker-php-ext-install -j $(getconf _NPROCESSORS_ONLN) \
bcmath \
exif \
gd \
gmp \
mcrypt \
pdo_mysql \
soap \
sockets \
zip \
&& \
pecl install \
memcached-2.2.0 \
redis-4.3.0 \
&& \
docker-php-ext-enable \
memcached \
redis \
&& \
apk del .build-deps \
&& \
php -m
# Install Composer v2
COPY --from=composer:2 /usr/bin/composer /usr/local/bin/composer