-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
65 lines (59 loc) · 1.53 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
FROM alpine:3
RUN set -xe && \
apk add gnu-libiconv --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ --allow-untrusted \
&& \
apk -U upgrade \
&& \
apk add --update \
ca-certificates \
composer \
gnu-libiconv \
gzip \
nginx \
openssl \
php7-common \
php7-curl \
php7-ctype \
php7-dom \
php7-fileinfo \
php7-fpm \
php7-gd \
php7-iconv \
php7-json \
php7-openssl \
php7-mbstring \
php7-mysqli \
php7-mysqlnd \
php7-opcache \
php7-pdo \
php7-pdo_mysql \
php7-pdo_pgsql \
php7-pdo_sqlite \
php7-pear \
php7-phar \
php7-pgsql \
php7-session \
php7-simplexml \
php7-sqlite3 \
php7-tokenizer \
php7-xml \
php7-xmlreader \
php7-xmlwriter \
php7-zip \
php7-zlib \
mysql-client \
postgresql-client \
tar \
&& \
apk add php7-pecl-redis --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ --allow-untrusted \
&& \
rm -rf /var/cache/apk/*
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php
ADD nginx.conf php-fpm.conf /
RUN mv /nginx.conf /etc/nginx/nginx.conf && \
cat /php-fpm.conf >> /etc/php7/php-fpm.d/www.conf && \
echo "log_errors_max_len = 1048576" >> /etc/php7/php.ini && \
php -v
WORKDIR /var/www
EXPOSE 80
CMD php-fpm7 && nginx -g 'daemon off;'