-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
57 lines (56 loc) · 1.31 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#
# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh"
#
# PLEASE DO NOT EDIT IT DIRECTLY.
#
FROM php:8.1.31-zts-alpine
RUN set -eux; \
\
apk add --update --no-cache --virtual .build-deps \
freetype-dev \
gmp-dev \
icu-dev \
libintl \
libjpeg-turbo-dev \
libpng-dev \
libxml2-dev \
libzip-dev \
linux-headers \
postgresql-dev \
$PHPIZE_DEPS \
; \
docker-php-ext-configure gd \
--with-freetype=/usr/include/ \
--with-jpeg=/usr/include/ \
; \
docker-php-ext-install -j"$(getconf _NPROCESSORS_ONLN)" \
bcmath \
gd \
gmp \
intl \
opcache \
pdo_mysql \
pdo_pgsql \
pcntl \
sockets \
zip \
; \
\
pecl update-channels; \
pecl install \
redis \
xdebug \
; \
docker-php-ext-enable redis; \
rm -rf /tmp/pear ~/.pearrc; \
\
runDeps="$( \
scanelf --needed --nobanner --format '%n#p' --recursive /usr/local \
| tr ',' '\n' \
| sort -u \
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
)"; \
apk add --update --no-cache --virtual .run-deps $runDeps; \
apk del .build-deps; \
\
php --version