-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (19 loc) · 820 Bytes
/
Dockerfile
File metadata and controls
27 lines (19 loc) · 820 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
FROM php:8.1-apache-bookworm
LABEL maintainer="Peter Fisher"
RUN apt-get update --fix-missing \
&& apt-get install -y --no-install-recommends default-mysql-client zlib1g-dev libcurl3-dev libssl-dev libicu-dev g++ \
&& docker-php-ext-configure intl \
&& docker-php-ext-install pdo_mysql intl
RUN pecl install redis raphf \
&& docker-php-ext-enable redis raphf
RUN apt-get install -y --no-install-recommends \
zip unzip libzip-dev curl \
&& docker-php-ext-configure zip \
&& docker-php-ext-install zip
RUN pecl install pecl_http
RUN pecl install xdebug-3.1.3 && docker-php-ext-enable xdebug http
COPY --from=composer /usr/bin/composer /usr/bin/composer
RUN apt-get clean autoclean \
&& apt-get autoremove --yes \
&& rm -rf /var/lib/{apt,dpkg,cache,log}/ \
&& rm -rf /tmp/*