-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
47 lines (46 loc) · 982 Bytes
/
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
FROM php:7.4-cli-alpine
RUN apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
curl-dev \
libtool \
libxml2-dev \
postgresql-dev \
sqlite-dev \
freetype-dev \
libpng-dev \
libjpeg-turbo-dev \
&& apk add --no-cache \
freetype \
libjpeg-turbo \
libpng \
curl \
git \
postgresql-libs \
libintl \
icu \
icu-dev \
libzip-dev \
oniguruma-dev \
&& docker-php-ext-configure gd \
--enable-gd \
--with-freetype=/usr/include/ \
--with-jpeg=/usr/include/ \
&& NPROC=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1) \
&& docker-php-ext-install \
bcmath \
curl \
iconv \
mbstring \
pdo \
gd \
pdo_mysql \
pdo_pgsql \
pdo_sqlite \
pcntl \
tokenizer \
xml \
soap \
zip \
intl \
&& curl -s https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer \
&& apk del -f .build-deps