-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
66 lines (59 loc) · 1.34 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
58
59
60
61
62
63
64
65
66
FROM php:7.4.5-fpm-alpine3.11 as php
RUN set -xe && apk update && apk upgrade
RUN set -xe \
&& apk add --no-cache \
shadow \
libzip-dev \
libintl \
icu \
icu-dev \
bash \
curl \
libmcrypt \
libmcrypt-dev \
libxml2-dev \
freetype \
freetype-dev \
libpng \
libpng-dev \
libjpeg-turbo \
libjpeg-turbo-dev \
postgresql-dev \
mariadb-dev \
pcre-dev \
git \
g++ \
make \
autoconf \
openssh \
util-linux-dev \
libuuid \
gnu-libiconv \
&& docker-php-ext-install -j$(nproc) \
zip \
gd \
intl \
soap \
sockets \
opcache \
pcntl \
sockets \
exif \
pdo_pgsql \
pdo_mysql \
iconv
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php
RUN pecl install redis && \
docker-php-ext-enable redis && \
pecl install uuid && \
docker-php-ext-enable uuid && \
pecl install pcov && \
docker-php-ext-enable pcov
RUN curl -sS https://getcomposer.org/installer | php -- \
--install-dir=/usr/local/bin \
--filename=composer
WORKDIR /var/www/app
COPY . /var/www/app
ENV COMPOSER_ALLOW_SUPERUSER=1
ENV COMPOSER_MEMORY_LIMIT=-1
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php