-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
45 lines (37 loc) · 1.02 KB
/
Dockerfile
File metadata and controls
45 lines (37 loc) · 1.02 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
44
45
ARG PHP_VERSION=8.4
FROM php:$PHP_VERSION
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
RUN apt-get -y update \
&& apt-get install -y \
git \
libfreetype6-dev \
libicu-dev \
libjpeg-dev \
libldap2-dev \
libpng-dev \
librabbitmq-dev \
libwebp-dev \
libxml2-dev \
libxslt1-dev \
libzip-dev \
zip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-install -j$(nproc) \
bcmath \
calendar \
exif \
intl \
opcache \
mysqli \
pdo_mysql \
soap \
xsl \
zip
RUN pecl install mongodb && docker-php-ext-enable mongodb
RUN pecl install amqp && docker-php-ext-enable amqp
RUN docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp \
&& docker-php-ext-install -j$(nproc) gd
RUN docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
&& docker-php-ext-install -j$(nproc) ldap
WORKDIR /var/www/html