-
Notifications
You must be signed in to change notification settings - Fork 68
/
Dockerfile
60 lines (58 loc) · 1.92 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
FROM php:7.1-cli
MAINTAINER fucongcong
RUN apt-get update -yqq \
&& apt-get install -yqq wget \
&& apt-get install -yqq libpng-dev \
&& apt-get install -yqq libicu-dev \
&& apt-get install -yqq libmcrypt-dev \
&& apt-get install -yqq libpcre3-dev \
&& apt-get install -yqq libjpeg62-turbo-dev \
&& apt-get install -yqq libfreetype6-dev \
&& apt-get install -yqq build-essential chrpath libssl-dev libfontconfig1-dev libxft-dev \
&& apt-get install -yqq zip \
&& wget https://github.com/redis/hiredis/archive/v0.13.3.zip \
&& unzip v0.13.3.zip \
&& rm v0.13.3.zip \
&& cd hiredis-0.13.3 \
&& make && make install \
&& ldconfig \
&& cd .. \
&& rm -rf hiredis-0.13.3 \
&& wget https://github.com/swoole/swoole-src/archive/v1.10.1.zip \
&& unzip v1.10.1.zip \
&& rm v1.10.1.zip \
&& cd swoole-src-1.10.1 \
&& phpize \
&& ./configure --enable-async-redis \
&& make \
&& make install \
&& cd .. \
&& rm -rf swoole-src-1.10.1 \
&& echo "extension=swoole.so" > /usr/local/etc/php/conf.d/docker-php-ext-swoole.ini \
&& wget http://pecl.php.net/get/redis-4.1.0.tgz \
&& tar xzf redis-4.1.0.tgz \
&& rm redis-4.1.0.tgz \
&& cd redis-4.1.0 \
&& phpize \
&& ./configure \
&& make \
&& make install \
&& cd .. \
&& rm -rf redis-4.1.0 \
&& echo "extension=redis.so" > /usr/local/etc/php/conf.d/docker-php-ext-redis.ini \
&& docker-php-ext-install gd \
&& docker-php-ext-install zip \
&& docker-php-ext-install intl \
&& docker-php-ext-install mcrypt \
&& docker-php-ext-install exif \
&& docker-php-ext-install gettext \
&& docker-php-ext-install pdo_mysql \
&& docker-php-ext-install sockets \
&& apt-get purge --auto-remove -y \
wget \
&& apt-get purge --auto-remove -y \
zip
RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ADD . /GroupCo
WORKDIR /GroupCo