-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.sh
More file actions
executable file
·42 lines (33 loc) · 1.09 KB
/
configure.sh
File metadata and controls
executable file
·42 lines (33 loc) · 1.09 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
#!/usr/bin/env sh
set -ex
apk update
apk add --no-cache fcgi file gettext gnu-libiconv bash git
# install gnu-libiconv and set LD_PRELOAD env to make iconv work fully on Alpine image.
# see https://github.com/docker-library/php/issues/240#issuecomment-763112749
export LD_PRELOAD="/usr/lib/preloadable_libiconv.so"
apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
icu-dev \
libzip-dev \
libxml2-dev \
postgresql-dev \
zlib-dev \
gmp-dev \
libpng-dev \
libwebp-dev \
libjpeg-turbo-dev \
freetype-dev
docker-php-ext-configure zip
docker-php-ext-configure gd --enable-gd --with-jpeg --with-webp --with-freetype
docker-php-ext-install -j$(nproc) intl mysqli pdo_pgsql pdo_mysql zip soap gmp gd exif
pecl install apcu-5.1.24
pecl clear-cache
docker-php-ext-enable apcu opcache
runDeps="$( \
scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions \
| tr ',' '\n' \
| sort -u \
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
)"
apk add --no-cache --virtual rundeps $runDeps make
apk del .build-deps