-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
38 lines (33 loc) · 1.14 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
# docker-compose build
FROM php:8.3-fpm-alpine
ENV PHPREDIS_VERSION 6.0.2
RUN mkdir -p /usr/src/php/ext/redis \
&& curl -L https://github.com/phpredis/phpredis/archive/$PHPREDIS_VERSION.tar.gz | tar xvz -C /usr/src/php/ext/redis --strip 1 \
&& echo 'redis' >> /usr/src/php-available-exts
RUN apk add --update --no-cache \
git \
zip \
unzip \
tzdata \
freetype \
libjpeg-turbo \
libpng \
libxml2 \
curl \
icu \
# required for full langugae support: https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.16.0#ICU_data_split
icu-data-full
RUN apk add --no-cache --virtual .build-deps \
autoconf \
freetype-dev \
libjpeg-turbo-dev \
libpng-dev \
libxml2-dev \
icu-dev \
pcre-dev \
curl-dev \
&& docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd \
&& docker-php-ext-install intl pdo_mysql xml opcache mysqli redis curl \
&& apk del .build-deps
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer