1
1
# Container Base
2
- FROM php:5.5 -apache
2
+ FROM php:7.1 -apache
3
3
4
4
ENV http_proxy ${HTTP_PROXY}
5
5
ENV https_proxy ${HTTP_PROXY}
@@ -22,16 +22,16 @@ RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-di
22
22
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
23
23
&& docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
24
24
&& docker-php-ext-install -j$(nproc) iconv bcmath mcrypt \
25
- gd mysql pdo_mysql calendar curl exif ftp gettext \
25
+ gd pdo_mysql calendar curl exif ftp gettext \
26
26
hash xsl ldap intl imap pdo_sqlite mbstring \
27
27
mcrypt pcntl readline shmop soap sockets wddx zip
28
28
29
29
# Install ssh2
30
- RUN wget https://www.libssh2.org/download/libssh2-1.7.0.tar.gz && wget https://pecl.php.net/get/ssh2-0.13 .tgz \
31
- && tar vxzf libssh2-1.7.0.tar.gz && tar vxzf ssh2-0.13 .tgz \
30
+ RUN wget https://www.libssh2.org/download/libssh2-1.7.0.tar.gz && wget https://pecl.php.net/get/ssh2-1.1.2 .tgz \
31
+ && tar vxzf libssh2-1.7.0.tar.gz && tar vxzf ssh2-1.1.2 .tgz \
32
32
&& cd libssh2-1.7.0 && ./configure \
33
33
&& make && make install \
34
- && cd ../ssh2-0.13 && phpize && ./configure --with-ssh2 \
34
+ && cd ../ssh2-1.1.2 && phpize && ./configure --with-ssh2 \
35
35
&& make && make install \
36
36
&& echo "extension=ssh2.so" >> /usr/local/etc/php/conf.d/ssh2.ini
37
37
@@ -46,24 +46,18 @@ RUN mkdir -p /opt/oci8 \
46
46
&& ln -s libclntsh.so.12.1 libclntsh.so \
47
47
&& ln -s libocci.so.12.1 libocci.so \
48
48
&& cd /tmp \
49
- && wget http ://pecl.php.net/get/oci8-2.0.8 .tgz \
50
- && tar xzf oci8-2.0.8 .tgz \
51
- && cd oci8-2.0.8 \
49
+ && wget https ://pecl.php.net/get/oci8-2.1.7 .tgz \
50
+ && tar xzf oci8-2.1.7 .tgz \
51
+ && cd oci8-2.1.7 \
52
52
&& phpize \
53
53
&& ./configure --with-oci8=shared,instantclient,/opt/oci8/instantclient_12_1/ \
54
54
&& make \
55
55
&& make install \
56
- && echo "extension=/tmp/oci8-2.0.8 /modules/oci8.so" >> /usr/local/etc/php/conf.d/oci8.ini
56
+ && echo "extension=/tmp/oci8-2.1.7 /modules/oci8.so" >> /usr/local/etc/php/conf.d/oci8.ini
57
57
58
58
# Install redis
59
- RUN mkdir -p /tmp/redis \
60
- && cd /tmp/redis \
61
- && wget https://pecl.php.net/get/redis-2.2.8.tgz \
62
- && tar -xvf redis-2.2.8.tgz \
63
- && cd redis-2.2.8 \
64
- && phpize && ./configure \
65
- && make && make install \
66
- && echo "extension=redis.so" > /usr/local/etc/php/conf.d/redis.ini
59
+ RUN pecl install redis \
60
+ && echo "extension=redis.so" >> /usr/local/etc/php/conf.d/oci8.ini
67
61
68
62
# Install Composer
69
63
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin/ --filename=composer
0 commit comments