-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (32 loc) · 942 Bytes
/
Dockerfile
File metadata and controls
43 lines (32 loc) · 942 Bytes
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 php:8.2.4-fpm
## Update package information
RUN apt-get update
## Install Composer
RUN curl -sS https://getcomposer.org/installer \
| php -- --install-dir=/usr/local/bin --filename=composer
###
## PHP Extensisons
###
## Install intl library and extension
RUN apt-get install -y \
libicu-dev \
libxslt-dev \
libzip-dev \
curl \
unzip \
zip
RUN docker-php-ext-install intl \
&& docker-php-ext-configure intl
RUN docker-php-ext-install xsl \
&& docker-php-ext-configure xsl
RUN docker-php-ext-install zip \
&& docker-php-ext-configure zip
###
## Optional PHP extensions
###
RUN pecl install xdebug \
&& docker-php-ext-enable xdebug \
&& echo "xdebug.mode=coverage" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
&& echo "xdebug.client_host = host.docker.internal" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
COPY . /usr/src/speedy
WORKDIR /usr/src/speedy