-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
80 lines (72 loc) · 1.79 KB
/
Dockerfile
File metadata and controls
80 lines (72 loc) · 1.79 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# https://github.com/docker-library/php/blob/master/7.2/alpine3.7/fpm/Dockerfile
FROM php:7.2-fpm-alpine3.7
ENV PHPIZE_DEPS $PHPIZE_DEPS
RUN apk add --no-cache --update --virtual .phpize-deps $PHPIZE_DEPS \
freetype-dev \
libpng-dev \
libtool \
libxml2-dev \
postgresql-dev \
\
&& apk add --no-cache --update \
gmp-dev \
icu-dev \
imagemagick-dev \
imap-dev \
libjpeg-turbo-dev \
libzip-dev \
\
&& apk add --no-cache --update \
git \
hiredis \
postgresql \
shadow \
wget \
zsh \
\
&& docker-php-ext-configure gd \
--with-freetype-dir=/usr/include/ \
--with-png-dir=/usr/include/ \
--with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install gd \
\
&& docker-php-ext-install intl \
\
&& docker-php-ext-install soap \
\
&& docker-php-ext-install bcmath \
\
&& docker-php-ext-install gmp \
\
&& docker-php-ext-configure imap --with-imap --with-imap-ssl \
&& docker-php-ext-install imap \
\
&& docker-php-ext-configure zip --with-libzip \
&& docker-php-ext-install zip \
\
&& docker-php-ext-install pdo_pgsql \
\
&& pecl install imagick-3.4.3 \
&& docker-php-ext-enable imagick \
\
&& pecl install redis \
&& docker-php-ext-enable redis \
\
&& pecl install xdebug \
&& docker-php-ext-enable xdebug \
\
&& apk del .phpize-deps
#
RUN curl -sS "https://getcomposer.org/installer" | php -- --install-dir=/usr/local/bin --filename=composer
#
RUN mkdir /var/www/.composer \
&& chown -R www-data:www-data /var/www/.composer
#
ENV PATH "$PATH:./vendor/bin"
#
COPY conf/php.ini /usr/local/etc/php/
#
RUN chsh --shell /bin/zsh root \
&& chsh --shell /bin/zsh www-data
#
WORKDIR /app