-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (40 loc) · 1.1 KB
/
Dockerfile
File metadata and controls
43 lines (40 loc) · 1.1 KB
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
FROM ghcr.io/mileschou/xdebug:7.3-apache
ENV COMPOSER_PATH /usr/local/bin/composer
# Install extensions
RUN set -xe && \
apt-get update -y && apt-get install -y --no-install-recommends --no-install-suggests \
libgmp-dev \
libjpeg-dev \
libmemcached-dev \
libpng-dev \
libxml2-dev \
libzip-dev \
zlib1g-dev \
&& \
apt-get clean && rm -rf /var/lib/apt/lists/* \
&& \
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 \
pdo_mysql \
soap \
sockets \
zip \
&& \
pecl install \
memcached \
redis \
&& \
docker-php-ext-enable \
memcached \
redis \
&& \
php -m
# Install Composer v2
COPY --from=composer:2 /usr/bin/composer /usr/local/bin/composer